[GH-ISSUE #1335] [both singleplayer modes] Crafting tables stay usable after removal or moving away #368

Closed
opened 2026-11-02 15:38:33 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1335

Tested commit: 83fa14e51b89eab728b8e233e9e5d95296bef93d, explicit singleplayer modes, render distance 4.

  1. Open a crafting table and arrange eight planks into the chest recipe.
  2. While its screen is open, either remove the table (setblock ... air) or teleport 20 blocks away.
  3. Wait 40 ticks and shift-click the result.

Expected: the invalid table closes, resolves its inputs, and cannot craft afterward.

Actual with both --no-server-thread and --server-thread: the 3×3 screen remains usable and creates a chest. Authoritative clear @s chest 0 finds one in each removal/distance subcase. This concerns the crafting-table window, independently of chest/furnace menu range checks.

Hypothesis: the open table stores the grid/window but not its block position, so normal table validity cannot be checked.

Acceptance: removal and out-of-range movement close the table, return/drop inputs once, and reject stale crafting clicks.

Evidence: .local/singleplayer-audit/sequence-d/menu-invalid-*/, tools/singleplayer_sequence_audit.py --case menu-invalid; an earlier 512-block move also retained the 3×3 screen. No matching issue found.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1335 Tested commit: `83fa14e51b89eab728b8e233e9e5d95296bef93d`, explicit singleplayer modes, render distance 4. 1. Open a crafting table and arrange eight planks into the chest recipe. 2. While its screen is open, either remove the table (`setblock ... air`) or teleport 20 blocks away. 3. Wait 40 ticks and shift-click the result. Expected: the invalid table closes, resolves its inputs, and cannot craft afterward. Actual with both `--no-server-thread` and `--server-thread`: the 3×3 screen remains usable and creates a chest. Authoritative `clear @s chest 0` finds **one** in each removal/distance subcase. This concerns the crafting-table window, independently of chest/furnace menu range checks. Hypothesis: the open table stores the grid/window but not its block position, so normal table validity cannot be checked. Acceptance: removal and out-of-range movement close the table, return/drop inputs once, and reject stale crafting clicks. Evidence: `.local/singleplayer-audit/sequence-d/menu-invalid-*/`, `tools/singleplayer_sequence_audit.py --case menu-invalid`; an earlier 512-block move also retained the 3×3 screen. No matching issue found.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#368
No description provided.