From bd054a7a894d03c34ff22fc697cf4deed70f6d64 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 7 Jun 2025 18:34:10 +0200 Subject: test-client: consider non-interactable tiles with item for interact target --- test-client/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-client/main.ts') diff --git a/test-client/main.ts b/test-client/main.ts index 66e3e989..8d19be51 100644 --- a/test-client/main.ts +++ b/test-client/main.ts @@ -394,7 +394,7 @@ export function get_interact_target(): V2 | undefined { for (let ox = -1; ox <= 1; ox++) for (let oy = -1; oy <= 1; oy++) { const t = tiles.get([bx + ox, by + oy] + "") if (!t) continue - if (data.tile_interact[t.kind]) { + if (data.tile_interact[t.kind] || t.item) { const cx = (bx + ox + 0.5) const cy = (by + oy + 0.5) const dx = rx - cx -- cgit v1.2.3-70-g09d2