[GH-ISSUE #1334] [both singleplayer modes] Chest and furnace menus remain usable 20 blocks away #369

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/1334

Tested commit: 83fa14e51b89eab728b8e233e9e5d95296bef93d, explicit --no-server-thread and --server-thread, render distance 4.

  1. Stand at (0.5,100,0.5) and open a chest or furnace at (2,100,0).
  2. Teleport to (0.5,100,20.5) while the menu is open; the original chunk remains loaded.
  3. Wait 40 ticks, then shift-click seven diamonds into the chest, or seven raw iron into the furnace.

Expected: moving outside interaction range closes the menu and prevents remote transfers.

Actual in both modes: the menu stays open and accepts the transfer. Authoritative block NBT contains all seven items at the original block. Threaded menus do close after a much longer move unloads the block, so that earlier control missed the range failure.

Hypothesis: Slots::valid checks block-entity presence but has no player-distance check; old menus also lack range validation.

Acceptance: menus close outside normal range and stale clicks cannot transfer items remotely.

Evidence: .local/singleplayer-audit/sequence-d/menu-invalid-*/, tools/singleplayer_sequence_audit.py --case menu-invalid (distance subcases). No matching issue found.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1334 Tested commit: `83fa14e51b89eab728b8e233e9e5d95296bef93d`, explicit `--no-server-thread` and `--server-thread`, render distance 4. 1. Stand at `(0.5,100,0.5)` and open a chest or furnace at `(2,100,0)`. 2. Teleport to `(0.5,100,20.5)` while the menu is open; the original chunk remains loaded. 3. Wait 40 ticks, then shift-click seven diamonds into the chest, or seven raw iron into the furnace. Expected: moving outside interaction range closes the menu and prevents remote transfers. Actual in both modes: the menu stays open and accepts the transfer. Authoritative block NBT contains all seven items at the original block. Threaded menus do close after a much longer move unloads the block, so that earlier control missed the range failure. Hypothesis: `Slots::valid` checks block-entity presence but has no player-distance check; old menus also lack range validation. Acceptance: menus close outside normal range and stale clicks cannot transfer items remotely. Evidence: `.local/singleplayer-audit/sequence-d/menu-invalid-*/`, `tools/singleplayer_sequence_audit.py --case menu-invalid` (distance subcases). 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#369
No description provided.