diff options
| -rw-r--r-- | client/game.gd | 2 | ||||
| -rw-r--r-- | client/player/player.gd | 2 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/client/game.gd b/client/game.gd index 74c79d8b..f1f4e065 100644 --- a/client/game.gd +++ b/client/game.gd @@ -51,7 +51,7 @@ func _ready():  		var player: Player = players.get(id)  		if player != null:  			if player.hand != null: -				player.hand.free() +				player.hand.queue_free()  			players.erase(id)  			player.queue_free()  	) 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 | 
