aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-07-09 14:13:18 +0200
committernokoe <nokoe@mailbox.org>2024-07-09 14:13:18 +0200
commite6cf494ccbd5541585aff16b4f4825d9b58f6a31 (patch)
tree1420c994f173ca73e5a7c7abc80bddbc8384fd1e /client
parenta0b5679f6fbfa8058ea1d36727d7cad5d5dfc2d3 (diff)
downloadhurrycurry-e6cf494ccbd5541585aff16b4f4825d9b58f6a31.tar
hurrycurry-e6cf494ccbd5541585aff16b4f4825d9b58f6a31.tar.bz2
hurrycurry-e6cf494ccbd5541585aff16b4f4825d9b58f6a31.tar.zst
remove progress bar when finished
Diffstat (limited to 'client')
-rw-r--r--client/map/items/item.gd3
1 files changed, 3 insertions, 0 deletions
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