diff options
Diffstat (limited to 'client/player')
| -rw-r--r-- | client/player/player.gd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/player/player.gd b/client/player/player.gd index 3285cafc..223d2c88 100644 --- a/client/player/player.gd +++ b/client/player/player.gd @@ -121,11 +121,11 @@ func remove_item(h): func progress(position__: float, speed: float, warn: bool, h): if hand[G.hand_to_index(h)] != null: hand[G.hand_to_index(h)].progress(position__, speed, warn) -func finish(): - if hand != null: hand.finish() +func finish(h): + if hand[G.hand_to_index(h)] != null: hand[G.hand_to_index(h)].finish() func take_item(tile: Tile, h): - if hand != null: push_error("already holding an item") + if hand[G.hand_to_index(h)] != null: push_error("already holding an item") var i = tile.take_item() i.take() set_item(i, h) |