Skip to content

Commit

Permalink
Remove superfluous and wrong logic to reuse cached load (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomShaper authored Aug 6, 2024
1 parent 34c0506 commit 690ee91
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions menu/menu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,7 @@ func _on_loading_done_timer_timeout():
func _on_play_pressed():
main.hide()
loading.show()
if ResourceLoader.has_cached(path):
multiplayer.multiplayer_peer = peer
emit_signal("replace_main_scene", ResourceLoader.load_threaded_get(path))
else:
ResourceLoader.load_threaded_request(path, "", true)
ResourceLoader.load_threaded_request(path, "", true)

func _on_settings_pressed():
main.hide()
Expand Down

0 comments on commit 690ee91

Please sign in to comment.