From f989459751364b28aaf87a24bef9d7c97a6663bc Mon Sep 17 00:00:00 2001 From: pennyrigate Date: Fri, 3 Mar 2023 23:18:59 -0500 Subject: [PATCH] restart actually works again --- maps/map.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maps/map.gd b/maps/map.gd index ca998d1..4388271 100644 --- a/maps/map.gd +++ b/maps/map.gd @@ -23,7 +23,7 @@ func _physics_process(delta): get_parent().add_child(Game.pause_screen.instance()) # restart level if Input.is_action_just_pressed("restart"): - call_deferred("restart_level") + Game.call_deferred("restart_level") if Game.golds == 50 && Game.shards == 5: #Time bonus