aboutsummaryrefslogtreecommitdiff
path: root/client/player
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-12-24 21:59:26 +0100
committermetamuffin <metamuffin@disroot.org>2024-12-25 20:01:43 +0100
commit15be00667282a253fb438fec9d6347f5af89d9a0 (patch)
tree4218b9c95b0f89576e2f71a997c92c0828765975 /client/player
parent469d554381597a383aa799b29261786de19fb08e (diff)
downloadhurrycurry-15be00667282a253fb438fec9d6347f5af89d9a0.tar
hurrycurry-15be00667282a253fb438fec9d6347f5af89d9a0.tar.bz2
hurrycurry-15be00667282a253fb438fec9d6347f5af89d9a0.tar.zst
fix two-handed clear progres
Diffstat (limited to 'client/player')
-rw-r--r--client/player/player.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/player/player.gd b/client/player/player.gd
index 3285cafc..223d2c88 100644
--- a/client/player/player.gd
+++ b/client/player/player.gd
@@ -121,11 +121,11 @@ func remove_item(h):
func progress(position__: float, speed: float, warn: bool, h):
if hand[G.hand_to_index(h)] != null: hand[G.hand_to_index(h)].progress(position__, speed, warn)
-func finish():
- if hand != null: hand.finish()
+func finish(h):
+ if hand[G.hand_to_index(h)] != null: hand[G.hand_to_index(h)].finish()
func take_item(tile: Tile, h):
- if hand != null: push_error("already holding an item")
+ if hand[G.hand_to_index(h)] != null: push_error("already holding an item")
var i = tile.take_item()
i.take()
set_item(i, h)