summaryrefslogtreecommitdiff
path: root/client/game.gd
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/game.gd
parent469d554381597a383aa799b29261786de19fb08e (diff)
downloadhurrycurry-15be00667282a253fb438fec9d6347f5af89d9a0.tar
hurrycurry-15be00667282a253fb438fec9d6347f5af89d9a0.tar.bz2
hurrycurry-15be00667282a253fb438fec9d6347f5af89d9a0.tar.zst
fix two-handed clear progres
Diffstat (limited to 'client/game.gd')
-rw-r--r--client/game.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/game.gd b/client/game.gd
index 850d539e..9a6b8808 100644
--- a/client/game.gd
+++ b/client/game.gd
@@ -166,7 +166,7 @@ func handle_packet(p):
var t: Tile = map.get_tile_instance(p.item.tile)
t.finish()
else:
- players[p.item.player].finish()
+ players[p.item.player[0]].finish(p.item.player[1])
"set_item":
var location: Dictionary = p["location"]
if p.item != null:
@@ -193,7 +193,7 @@ func handle_packet(p):
else:
var pl: Player = players[p.location.player[0]]
var h = p.location.player[1]
- pl.finish()
+ pl.finish(h)
pl.set_item(null, h)
"update_map":
var neighbors: Array = p["neighbors"]