aboutsummaryrefslogtreecommitdiff
path: root/client/game.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-09-27 22:47:07 +0200
committernokoe <nokoe@mailbox.org>2024-09-27 22:54:16 +0200
commitfc9b59121332fa6aff36eaf7b9061fc46eb95f45 (patch)
tree5d98d7002da0044ab5bc677b6b3fd689865c7e00 /client/game.gd
parentd18b148be6470a0e91bbfcf30437be70b4ef3b57 (diff)
downloadhurrycurry-fc9b59121332fa6aff36eaf7b9061fc46eb95f45.tar
hurrycurry-fc9b59121332fa6aff36eaf7b9061fc46eb95f45.tar.bz2
hurrycurry-fc9b59121332fa6aff36eaf7b9061fc46eb95f45.tar.zst
fix player still holding knife after cutting board interaction finishes
Diffstat (limited to 'client/game.gd')
-rw-r--r--client/game.gd5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/game.gd b/client/game.gd
index c3b34332..76bb271a 100644
--- a/client/game.gd
+++ b/client/game.gd
@@ -175,9 +175,12 @@ func handle_packet(p):
else:
if "tile" in p.location:
var t: Tile = map.get_tile_instance(p.location.tile)
+ t.finish()
t.set_item(null)
else:
- players[p.location.player].set_item(null)
+ var player: Player = players[p.location.player]
+ player.finish()
+ player.set_item(null)
"update_map":
var neighbors: Array = p["neighbors"]
if p.kind != null: