[PR #882] [MERGED] LAN: guests use brewing stands #2884

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/882
Author: @ludovic111
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @ludovic111

Base: main ← Head: fix/lan-guest-brewing


📝 Commits (1)

  • 5b47d53 LAN: guests use brewing stands

📊 Changes

7 files changed (+121 additions, -41 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+3 -0)
📝 crates/horizon-client/src/game/lan_actions.rs (+8 -1)
📝 crates/horizon-client/src/game/lan_crafting.rs (+37 -23)
📝 crates/horizon-client/src/game/remote.rs (+20 -5)
📝 crates/horizon-client/src/game/stations.rs (+3 -1)
📝 crates/horizon-client/src/lan/containers.rs (+11 -9)
📝 tools/lan_e2e.py (+39 -2)

📄 Description

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

Part of #848 (reported by Tydragon00): "the guest can't use brewing stands". Stacked on #881 (it uses that PR's slot map); review that one first.

What

  • Host:
    • BrewingStandBlock.useWithoutItem opens BrewingStandMenu (minecraft:brewing_stand, container.brewing) for a guest.
    • Clicks run on the host's verified menu engine (Kind::Brewing: one bottle per slot, the ingredient and blaze powder slots, and quickMoveStack's order) over the stand's slots. lan_furnace_click becomes lan_machine_click and covers furnaces and brewing stands.
    • The four data slots (BrewingStandBlockEntity.dataAccess: brew time, fuel, total brew time, total fuel) are sent as ContainerSetData.
  • Guest:
    • It opens the menu on the brewing stand screen, maps its slots and predicts clicks on Kind::Brewing, as MultiPlayerGameMode.handleContainerInput does.
    • It shows the times from the data slots and draws the server's title.
    • A local stand still clicks through the station screen code; single player doesn't change.

Tested

New check brewing in tools/lan_e2e.py: the guest shift-clicks blaze powder, nether wart and a glass bottle into a brewing stand. They land in the fuel, ingredient and bottle slots. The stand burns the powder into 20 fuel, and the guest's screen shows that fuel. It fails on main, where nothing opens for the guest.

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.
    • brewing 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.

🤖 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/882 **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-brewing` --- ### 📝 Commits (1) - [`5b47d53`](https://github.com/horizon-rust/horizon/commit/5b47d53dbf409b55b582212bcab2d26c0b68054d) LAN: guests use brewing stands ### 📊 Changes **7 files changed** (+121 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+3 -0) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+8 -1) 📝 `crates/horizon-client/src/game/lan_crafting.rs` (+37 -23) 📝 `crates/horizon-client/src/game/remote.rs` (+20 -5) 📝 `crates/horizon-client/src/game/stations.rs` (+3 -1) 📝 `crates/horizon-client/src/lan/containers.rs` (+11 -9) 📝 `tools/lan_e2e.py` (+39 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Part of #848 (reported by Tydragon00): "the guest can't use brewing stands". Stacked on #881 (it uses that PR's slot map); review that one first. ## What - **Host:** - `BrewingStandBlock.useWithoutItem` opens `BrewingStandMenu` (`minecraft:brewing_stand`, `container.brewing`) for a guest. - Clicks run on the host's verified menu engine (`Kind::Brewing`: one bottle per slot, the ingredient and blaze powder slots, and `quickMoveStack`'s order) over the stand's slots. `lan_furnace_click` becomes `lan_machine_click` and covers furnaces and brewing stands. - The four data slots (`BrewingStandBlockEntity.dataAccess`: brew time, fuel, total brew time, total fuel) are sent as `ContainerSetData`. - **Guest:** - It opens the menu on the brewing stand screen, maps its slots and predicts clicks on `Kind::Brewing`, as `MultiPlayerGameMode.handleContainerInput` does. - It shows the times from the data slots and draws the server's title. - A local stand still clicks through the station screen code; single player doesn't change. ## Tested New check `brewing` in `tools/lan_e2e.py`: the guest shift-clicks blaze powder, nether wart and a glass bottle into a brewing stand. They land in the fuel, ingredient and bottle slots. The stand burns the powder into 20 fuel, and the guest's screen shows that fuel. It fails on main, where nothing opens for the guest. ## 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. - `brewing` 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. 🤖 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#2884
No description provided.