Remove superfluous and wrong logic to reuse cached load (#186)

This commit is contained in:
Pedro J. Estébanez
2024-08-06 22:53:35 +02:00
committed by GitHub
parent 34c05068ef
commit 690ee91837

View File

@@ -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()