[GH-ISSUE #803] [multiplayer] Guest doors don't open until the server answers, and remote players' eating isn't shown #229

Closed
opened 2026-11-02 15:37:30 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/803

🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself.

Left over from #696 after #787 merged the guest fixes for clicks, head turns, XP orbs, sleeping, pushes and eating.

  1. Block-use prediction. A door or trapdoor a guest opens only toggles and animates once the server's block update arrives. Vanilla predicts it on the client: MultiPlayerGameMode.useItemOn runs the use locally under a prediction sequence (BlockStatePredictionHandler), and ClientboundBlockChangedAckPacket confirms it or rolls it back. Testing this in tools/lan_e2e.py needs added network delay, because on localhost the server answers within a tick or two.
  2. Remote players eating. The host and other guests don't see a remote player eat. The using-item flag in LivingEntity.DATA_LIVING_ENTITY_FLAGS, plus the eating particles and sounds for remote players, need checking against vanilla.
Originally created by @ludovic111 on GitHub (Oct 18, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/803 > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. Left over from #696 after #787 merged the guest fixes for clicks, head turns, XP orbs, sleeping, pushes and eating. 1. **Block-use prediction.** A door or trapdoor a guest opens only toggles and animates once the server's block update arrives. Vanilla predicts it on the client: `MultiPlayerGameMode.useItemOn` runs the use locally under a prediction sequence (`BlockStatePredictionHandler`), and `ClientboundBlockChangedAckPacket` confirms it or rolls it back. Testing this in `tools/lan_e2e.py` needs added network delay, because on localhost the server answers within a tick or two. 2. **Remote players eating.** The host and other guests don't see a remote player eat. The using-item flag in `LivingEntity.DATA_LIVING_ENTITY_FLAGS`, plus the eating particles and sounds for remote players, need checking against vanilla.
bsakaguchi 2026-11-02 15:37:30 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ludovic111 commented on GitHub (Oct 18, 2026):

Claimed by ludovic on Discord (GitHub: ludovic111), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #803).

<!-- gh-comment-id:6249441503 --> @ludovic111 commented on GitHub (Oct 18, 2026): Claimed by `ludovic` on Discord (GitHub: `ludovic111`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #803). <!-- kira:work -->
Author
Owner

@ludovic111 commented on GitHub (Oct 18, 2026):

🤖 Agent: the eating half is fixed by #887 (merged): players now see each other eat, draw bows and raise shields, with the crumbs. The door-prediction half stays open as #869.

<!-- gh-comment-id:6254472181 --> @ludovic111 commented on GitHub (Oct 18, 2026): 🤖 Agent: the eating half is fixed by #887 (merged): players now see each other eat, draw bows and raise shields, with the crumbs. The door-prediction half stays open as #869.
Author
Owner

@ludovic111 commented on GitHub (Oct 21, 2026):

🤖 Agent: closing. Both halves are covered:

  • Remote players eating: fixed by #887 (merge 24bcef42, in the stable release v2026.10.19.15). Players see each other eat, draw bows and raise shields, with the crumbs.
  • Door, trapdoor, fence gate and lever prediction for guests: tracked in #869, which has the full plan (vanilla's BlockStatePredictionHandler with sequenced acks).
<!-- gh-comment-id:6313525445 --> @ludovic111 commented on GitHub (Oct 21, 2026): 🤖 Agent: closing. Both halves are covered: - Remote players eating: fixed by #887 (merge 24bcef42, in the stable release v2026.10.19.15). Players see each other eat, draw bows and raise shields, with the crumbs. - Door, trapdoor, fence gate and lever prediction for guests: tracked in #869, which has the full plan (vanilla's `BlockStatePredictionHandler` with sequenced acks).
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#229
No description provided.