diff options
Diffstat (limited to 'scripts/load_map.gd')
-rw-r--r-- | scripts/load_map.gd | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/load_map.gd b/scripts/load_map.gd index 8130997..1e4405c 100644 --- a/scripts/load_map.gd +++ b/scripts/load_map.gd @@ -10,7 +10,7 @@ func _ready(): map_load() func fetch (): - var root = get_tree().root.get_child(0) + var root = get_tree().root.get_node("world") if _world == null: _world = root.get_node("world") if _path_holder == null: @@ -105,6 +105,8 @@ func map_load(): set_map_state(state) print("loaded") + _path_holder.refresh_path(false) + func _process(_delta): if Input.is_action_just_released("save"): |