diff options
author | nokoe <nokoe@mailbox.org> | 2024-09-27 22:47:07 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2024-09-27 22:54:16 +0200 |
commit | fc9b59121332fa6aff36eaf7b9061fc46eb95f45 (patch) | |
tree | 5d98d7002da0044ab5bc677b6b3fd689865c7e00 /client/game.gd | |
parent | d18b148be6470a0e91bbfcf30437be70b4ef3b57 (diff) | |
download | hurrycurry-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.gd | 5 |
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: |