[GH-ISSUE #1503] [server-thread] Chest inventory changes leave comparator output stale #466

Closed
opened 2026-11-02 15:39:18 +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/1503

🤖 Filed by an AI assistant (Codex).

Tested 9dd9a836991e263b51d0cec0f690d40a0b09eecc; paired disposable worlds, explicit --no-server-thread / --server-thread.

  1. Put a comparator behind an empty chest and a redstone lamp on its output.
  2. In survival, open the chest, shift-click a stack of diamonds into it and close it.
  3. Change an unrelated block beside the comparator, then withdraw the diamonds and close the chest.

Expected: the lamp turns on after depositing and off after withdrawing, without an extra block update. Old mode and native Minecraft 26.3 both do this.

Actual in server-thread: the lamp stays off after depositing. The unrelated update makes it turn on; withdrawing then leaves it on. Authoritative chest contents are correct. Waiting forty ticks after each edit does not correct the output.

Reproduced twice using full window mouse events, including the normal click callbacks (extensions-comparator-physical-a, extensions-mouse-a). The native packet driver opens the chest and performs the same quick moves; its positive circuit control and both output transitions pass (extensions-native-comparator-a). Drivers: tools/singleplayer_extensions_audit.py --case comparator-physical, tools/singleplayer_container_native.py.

Hypothesis: server menu writes omit the comparator notification from BlockEntity.setChanged. This may share a missing callback with persistence issue #1497; the redstone failure occurs immediately without saving or unloading.

Acceptance: deposits and withdrawals update the authoritative comparator output and lamp without any unrelated world change.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1503 > 🤖 Filed by an AI assistant (Codex). Tested `9dd9a836991e263b51d0cec0f690d40a0b09eecc`; paired disposable worlds, explicit `--no-server-thread` / `--server-thread`. 1. Put a comparator behind an empty chest and a redstone lamp on its output. 2. In survival, open the chest, shift-click a stack of diamonds into it and close it. 3. Change an unrelated block beside the comparator, then withdraw the diamonds and close the chest. Expected: the lamp turns on after depositing and off after withdrawing, without an extra block update. Old mode and native Minecraft 26.3 both do this. Actual in **server-thread**: the lamp stays off after depositing. The unrelated update makes it turn on; withdrawing then leaves it on. Authoritative chest contents are correct. Waiting forty ticks after each edit does not correct the output. Reproduced twice using full window mouse events, including the normal click callbacks (`extensions-comparator-physical-a`, `extensions-mouse-a`). The native packet driver opens the chest and performs the same quick moves; its positive circuit control and both output transitions pass (`extensions-native-comparator-a`). Drivers: `tools/singleplayer_extensions_audit.py --case comparator-physical`, `tools/singleplayer_container_native.py`. Hypothesis: server menu writes omit the comparator notification from `BlockEntity.setChanged`. This may share a missing callback with persistence issue #1497; the redstone failure occurs immediately without saving or unloading. Acceptance: deposits and withdrawals update the authoritative comparator output and lamp without any unrelated world change.
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#466
No description provided.