diff options
author | metamuffin <metamuffin@disroot.org> | 2025-09-30 14:40:58 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-09-30 14:41:00 +0200 |
commit | 07319b08508e347148197b698a655ecd780e86ff (patch) | |
tree | 3c05c8c62136445fdd35d49936961efb13550c62 | |
parent | b4a046026e687a3b44ce2be0cbab1150bd3545ca (diff) | |
download | hurrycurry-07319b08508e347148197b698a655ecd780e86ff.tar hurrycurry-07319b08508e347148197b698a655ecd780e86ff.tar.bz2 hurrycurry-07319b08508e347148197b698a655ecd780e86ff.tar.zst |
Disable interactive if hand and tile is empty
-rw-r--r-- | client/game.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/game.gd b/client/game.gd index 465c1aec..727cb701 100644 --- a/client/game.gd +++ b/client/game.gd @@ -436,11 +436,11 @@ func get_tile_interactive(pos: Vector2i, hands: Array) -> bool: if tile_name == null: return false var tile = tile_index_by_name[tile_name] if map.get_tile_instance(pos).item != null: return true - if !tile_placeable_items.has(tile): return true for hand in hands: if hand == null: if tile_interactable_empty.has(tile): return true else: + if not tile_placeable_items.has(tile): return true if item_index_by_name[hand.item_name] in tile_placeable_items[tile]: return true return false |