[PR #881] [MERGED] LAN: guests use hoppers, dispensers and droppers #2882

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/881
Author: @ludovic111
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @ludovic111

Base: main ← Head: fix/lan-guest-machine-screens


📝 Commits (1)

  • a49f93f LAN: guests open hoppers, dispensers and droppers

📊 Changes

3 files changed (+65 additions, -7 deletions)

View changed files

📝 crates/horizon-client/src/game/machines.rs (+11 -1)
📝 crates/horizon-client/src/game/remote.rs (+21 -4)
📝 tools/lan_e2e.py (+33 -2)

📄 Description

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

Part of #848 (reported by Tydragon00): "check every block with a menu".

What

A LAN guest can now use hoppers, dispensers and droppers. The host already opened HopperMenu (minecraft:hopper) and DispenserMenu (minecraft:generic_3x3) for a guest, but on main the guest's client closed them at once with "Horizon cannot show minecraft:hopper screens yet". Now:

  • remote_open_screen opens them as 5- and 9-slot containers.
  • menu_slot maps their network slots: the container, then the inventory, then the hotbar, as in HopperMenu and DispenserMenu. Clicks go to the server, predicted on the menu engine's Hopper and Dispenser kinds, and the server's slot updates land.
  • The machine screen picks the hopper or dispenser layout from the server's menu type, and draws the server's title.

Tested

New check machines in tools/lan_e2e.py: the guest opens a hopper, a dispenser and a dropper and shift-clicks cobblestone into each. Reopened, each shows 5 or 9 slots with the stack in slot 0. It fails on main.

Self-check

  • cargo fmt --all -- --check: clean.
  • cargo clippy --workspace --all-targets -- -D warnings: clean on this branch.
  • cargo test -p horizon-client -p horizon-protocol: 1019 passed, 0 failed. This ran on an integration commit of the seven #848 / #803 PRs merged together.
  • tools/lan_e2e.py, on that integration build:
    • The #848 / #803 checks (pvp hurt containers machines brewing chest clicks eat eating xp swings plates time light sleep) all pass without --server-thread.
    • With --server-thread, all pass except light, which fails on main too.
    • machines fails on main.
  • Full tools/lan_e2e.py suite compared with main (e508a5ce binaries), with --server-thread:
    • Main fails self walls crafting sign pvp trials xp light.
    • The integration fails self walls crafting sign pvp trials. These fail on main too.
  • Full suite without --server-thread: later checks are order-dependent on main as well, and main fails clicks sleep push. After an earlier check, the guest's client and the server can disagree on where the guest stands, so later interactions are out of reach.
  • tools/parity.py --changed origin/main (95 harnesses) is running on the integration commit. The result will follow in a comment.

Brewing stands follow in the next PR (stacked on this one). Workstation menus are filed as #868.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/881 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/lan-guest-machine-screens` --- ### 📝 Commits (1) - [`a49f93f`](https://github.com/horizon-rust/horizon/commit/a49f93f9ef342a246a77cc91565c9cdc2d14f8d0) LAN: guests open hoppers, dispensers and droppers ### 📊 Changes **3 files changed** (+65 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/machines.rs` (+11 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+21 -4) 📝 `tools/lan_e2e.py` (+33 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Part of #848 (reported by Tydragon00): "check every block with a menu". ## What A LAN guest can now use hoppers, dispensers and droppers. The host already opened `HopperMenu` (`minecraft:hopper`) and `DispenserMenu` (`minecraft:generic_3x3`) for a guest, but on main the guest's client closed them at once with "Horizon cannot show minecraft:hopper screens yet". Now: - `remote_open_screen` opens them as 5- and 9-slot containers. - `menu_slot` maps their network slots: the container, then the inventory, then the hotbar, as in `HopperMenu` and `DispenserMenu`. Clicks go to the server, predicted on the menu engine's `Hopper` and `Dispenser` kinds, and the server's slot updates land. - The machine screen picks the hopper or dispenser layout from the server's menu type, and draws the server's title. ## Tested New check `machines` in `tools/lan_e2e.py`: the guest opens a hopper, a dispenser and a dropper and shift-clicks cobblestone into each. Reopened, each shows 5 or 9 slots with the stack in slot 0. It fails on main. ## Self-check - `cargo fmt --all -- --check`: clean. - `cargo clippy --workspace --all-targets -- -D warnings`: clean on this branch. - `cargo test -p horizon-client -p horizon-protocol`: 1019 passed, 0 failed. This ran on an integration commit of the seven #848 / #803 PRs merged together. - `tools/lan_e2e.py`, on that integration build: - The #848 / #803 checks (`pvp hurt containers machines brewing chest clicks eat eating xp swings plates time light sleep`) all pass without `--server-thread`. - With `--server-thread`, all pass except `light`, which fails on main too. - `machines` fails on main. - Full `tools/lan_e2e.py` suite compared with main (e508a5ce binaries), with `--server-thread`: - Main fails `self walls crafting sign pvp trials xp light`. - The integration fails `self walls crafting sign pvp trials`. These fail on main too. - Full suite without `--server-thread`: later checks are order-dependent on main as well, and main fails `clicks sleep push`. After an earlier check, the guest's client and the server can disagree on where the guest stands, so later interactions are out of reach. - `tools/parity.py --changed origin/main` (95 harnesses) is running on the integration commit. The result will follow in a comment. Brewing stands follow in the next PR (stacked on this one). Workstation menus are filed as #868. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:59:50 +07:00
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#2882
No description provided.