diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-28 22:16:56 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-28 22:16:59 +0100 |
| commit | cd155c97cf7a4273067e31727d7c7aac58cd7b12 (patch) | |
| tree | 6fd33432560d8c22c9f60acc430961959d3a5df1 | |
| parent | 7d2848d09f439d1b810e70a979762ae6a6d340ae (diff) | |
| download | hurrycurry-cd155c97cf7a4273067e31727d7c7aac58cd7b12.tar hurrycurry-cd155c97cf7a4273067e31727d7c7aac58cd7b12.tar.bz2 hurrycurry-cd155c97cf7a4273067e31727d7c7aac58cd7b12.tar.zst | |
test-client: fix tile interaction check
| -rw-r--r-- | test-client/main.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/main.ts b/test-client/main.ts index 120a556d..3f349d7c 100644 --- a/test-client/main.ts +++ b/test-client/main.ts @@ -412,7 +412,7 @@ export function can_interact_with_tile(t: TileData, hand: ItemSlot) { for (const part of t.parts) { if (hand.item && data.tile_placeable_items[part]) can_interact = data.tile_placeable_items[part].includes(hand.item.kind) - if (hand.item && data.tile_placeable_any) + if (hand.item && data.tile_placeable_any.includes(part)) can_interact = true if (!hand.item && data.tile_interactable_empty.includes(part)) can_interact = true |