Don't throw an error when runnin the world scene by itself.

This commit is contained in:
Relintai 2022-09-30 09:07:01 +02:00
parent ed9f5f71b3
commit 4d6c60a859

View File

@ -117,9 +117,11 @@ func save() -> void:
ESS.entity_spawner.save_player(_player, _player_file_name)
func _generation_finished():
if show_loading_screen and not Engine.editor_hint:
get_node("..").hide_loading_screen()
var p : Node = get_node("..")
if p && p.has_method("hide_loading_screen"):
get_node("..").hide_loading_screen()
# if _player:
# _player.set_physics_process(true)