diff options
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: |