From e6cf494ccbd5541585aff16b4f4825d9b58f6a31 Mon Sep 17 00:00:00 2001 From: nokoe Date: Tue, 9 Jul 2024 14:13:18 +0200 Subject: remove progress bar when finished --- client/map/items/item.gd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/map') diff --git a/client/map/items/item.gd b/client/map/items/item.gd index e9671e91..466348fe 100644 --- a/client/map/items/item.gd +++ b/client/map/items/item.gd @@ -49,6 +49,9 @@ func _process(delta): func progress(p: float, warn: bool): progress_instance.visible = true progress_instance.set_progress(p, warn) + # this shoukd be removed when the server is fixed + if p >= 1.: + finish(warn) func finish(_warn: bool): progress_instance.visible = false -- cgit v1.2.3-70-g09d2