aboutsummaryrefslogtreecommitdiff
path: root/client/player
diff options
context:
space:
mode:
Diffstat (limited to 'client/player')
-rw-r--r--client/player/player.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/player/player.gd b/client/player/player.gd
index a6122a97..d64b5d43 100644
--- a/client/player/player.gd
+++ b/client/player/player.gd
@@ -51,6 +51,8 @@ func update_position(new_position: Vector2, new_rotation: float):
func set_item(i: Item):
i.owned_by = hand_base
+ if hand != null:
+ hand.queue_free()
if i == null:
push_error("tile is null")
hand = i