aboutsummaryrefslogtreecommitdiff
path: root/client/game.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/game.gd')
-rw-r--r--client/game.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/game.gd b/client/game.gd
index aac5674b..a53f29b3 100644
--- a/client/game.gd
+++ b/client/game.gd
@@ -129,7 +129,7 @@ func handle_packet(p):
player_instance.position_ = last_position
"move_item":
if "player" in p.from and "player" in p.to:
- players[p.from.player].pass_to(p.to.player)
+ players[p.from.player].pass_to(players[p.to.player])
elif "tile" in p.from and "player" in p.to:
var t: Tile = map.get_tile_instance(p.from.tile)
players[p.to.player].take_item(t)