[PR #913] [MERGED] LAN: guests use machines and brewing stands, trigger plates, see hits, swings and the paused clock (bugs-lan-4 combined) #2906

Closed
opened 2026-11-02 16:00:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: integ/bl4


📝 Commits (10+)

  • 567cc33 LAN: the guest's clock stops with /time pause and keeps up with the server's game time
  • a49f93f LAN: guests open hoppers, dispensers and droppers
  • 0bc1968 LAN: guests see mobs flash when hit
  • 89cbe03 LAN: everyone sees players' arm swings
  • 5b47d53 LAN: guests use brewing stands
  • 159a5df LAN: pressure plates, tripwires and detector rails see the guests
  • feb85f6 Merge remote-tracking branch 'origin/fix/lan-guest-machine-screens' into integ/bl4
  • 40fbae1 Merge remote-tracking branch 'origin/fix/lan-guest-brewing' into integ/bl4
  • bff5121 Merge remote-tracking branch 'origin/fix/lan-guest-pressure-plates' into integ/bl4
  • c234641 Merge remote-tracking branch 'origin/fix/lan-damage-events' into integ/bl4

📊 Changes

16 files changed (+611 additions, -94 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+21 -5)
📝 crates/horizon-client/src/game/agent.rs (+3 -1)
📝 crates/horizon-client/src/game/chat.rs (+10 -0)
📝 crates/horizon-client/src/game/creatures.rs (+1 -1)
📝 crates/horizon-client/src/game/lan.rs (+36 -8)
📝 crates/horizon-client/src/game/lan_actions.rs (+93 -20)
📝 crates/horizon-client/src/game/lan_crafting.rs (+37 -23)
📝 crates/horizon-client/src/game/lan_mobs.rs (+20 -0)
📝 crates/horizon-client/src/game/machines.rs (+11 -1)
📝 crates/horizon-client/src/game/remote.rs (+97 -14)
📝 crates/horizon-client/src/game/server_travel.rs (+2 -5)
📝 crates/horizon-client/src/game/stations.rs (+3 -1)
📝 crates/horizon-client/src/lan/containers.rs (+38 -9)
📝 crates/horizon-client/src/mobs/ai.rs (+1 -1)
📝 crates/horizon-protocol/src/packets/play.rs (+20 -0)
📝 tools/lan_e2e.py (+218 -5)

📄 Description

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

Combined branch for bugs-lan-4: #881, #882, #883, #884, #885 and #886 merged onto main in that order, with the conflicts resolved. Merging this marks all six merged. #887 (seeing other players eat and use items, #803) conflicts in six files and gets its own rebase.

Included

  • #881: guests open hoppers, dispensers and droppers.
  • #882: guests use brewing stands.
  • #883: pressure plates, tripwires and detector rails see the guests.
  • #884: guests see mobs flash when hit (DamageEvent).
  • #885: everyone sees players' arm swings.
  • #886: the guest's clock stops with /time pause and keeps up with the server's game time.

Conflict resolutions

  • tools/lan_e2e.py: order-preserving union of CHECKS and CHECK_FNS; docstring lines and new check functions kept from both sides. A script checked that no function from either parent is lost and that every check has a function.
  • game/lan_crafting.rs (#882): #882's match, with a Furnace arm and a Brewing arm, using main's recipes() accessor (#878).
  • packets/play.rs test (#884): both round-trip packets kept (UpdateAttributes and DamageEvent).
  • game/lan_actions.rs (#885): main's enter_guest/leave_guest split (#879), with #885's swing counting moved into GuestSwap. The host's count is saved when a guest starts acting, and the guest's swings are credited when it stops.

Checks (Mac mini, on this branch)

  • cargo fmt --check and workspace clippy -D warnings: clean.
  • cargo test -p horizon-client -p horizon-protocol with resources: all pass (client lib 880 passed).
  • parity.py lan dedicated_server server_entities: 3/3 pass.
  • lan_e2e without --server-thread: machines, brewing, plates, hurt, swings, time, respawn, chat, light and pvp all pass. pvp failed once at the end of the long sequence ("pvp off still hurts"), then passed in three reruns: alone, after time/respawn/chat, and after merging main.
  • lan_e2e --server-thread: machines, brewing, hurt, swings, time, respawn, chat and pvp pass. plates fails there as on main, because blocks only tick near a local player (#890, being fixed separately).
  • After merging the latest main (server-host-8, modpacks-7): clippy clean, client tests pass, light/plates/pvp pass.

🤖 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/913 **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:** `integ/bl4` --- ### 📝 Commits (10+) - [`567cc33`](https://github.com/horizon-rust/horizon/commit/567cc335768b491e6bb0fd7defc3ac3db36d06d8) LAN: the guest's clock stops with /time pause and keeps up with the server's game time - [`a49f93f`](https://github.com/horizon-rust/horizon/commit/a49f93f9ef342a246a77cc91565c9cdc2d14f8d0) LAN: guests open hoppers, dispensers and droppers - [`0bc1968`](https://github.com/horizon-rust/horizon/commit/0bc19687aa29e714f03df078b425261329b40688) LAN: guests see mobs flash when hit - [`89cbe03`](https://github.com/horizon-rust/horizon/commit/89cbe03ebe1a6d54f4a494fcc0402f1768cdc710) LAN: everyone sees players' arm swings - [`5b47d53`](https://github.com/horizon-rust/horizon/commit/5b47d53dbf409b55b582212bcab2d26c0b68054d) LAN: guests use brewing stands - [`159a5df`](https://github.com/horizon-rust/horizon/commit/159a5dfa5f0c800de5fb8576c808f5e8315e64cd) LAN: pressure plates, tripwires and detector rails see the guests - [`feb85f6`](https://github.com/horizon-rust/horizon/commit/feb85f6d15d413b66e15262bc976c6caa141deee) Merge remote-tracking branch 'origin/fix/lan-guest-machine-screens' into integ/bl4 - [`40fbae1`](https://github.com/horizon-rust/horizon/commit/40fbae13b6d293468a4be459760b819126b0a117) Merge remote-tracking branch 'origin/fix/lan-guest-brewing' into integ/bl4 - [`bff5121`](https://github.com/horizon-rust/horizon/commit/bff5121f6eacfc1ae09285784de327bfb40fbbad) Merge remote-tracking branch 'origin/fix/lan-guest-pressure-plates' into integ/bl4 - [`c234641`](https://github.com/horizon-rust/horizon/commit/c234641ead88232b77efccd05f86469d170abc2e) Merge remote-tracking branch 'origin/fix/lan-damage-events' into integ/bl4 ### 📊 Changes **16 files changed** (+611 additions, -94 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+21 -5) 📝 `crates/horizon-client/src/game/agent.rs` (+3 -1) 📝 `crates/horizon-client/src/game/chat.rs` (+10 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+1 -1) 📝 `crates/horizon-client/src/game/lan.rs` (+36 -8) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+93 -20) 📝 `crates/horizon-client/src/game/lan_crafting.rs` (+37 -23) 📝 `crates/horizon-client/src/game/lan_mobs.rs` (+20 -0) 📝 `crates/horizon-client/src/game/machines.rs` (+11 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+97 -14) 📝 `crates/horizon-client/src/game/server_travel.rs` (+2 -5) 📝 `crates/horizon-client/src/game/stations.rs` (+3 -1) 📝 `crates/horizon-client/src/lan/containers.rs` (+38 -9) 📝 `crates/horizon-client/src/mobs/ai.rs` (+1 -1) 📝 `crates/horizon-protocol/src/packets/play.rs` (+20 -0) 📝 `tools/lan_e2e.py` (+218 -5) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Combined branch for bugs-lan-4: #881, #882, #883, #884, #885 and #886 merged onto main in that order, with the conflicts resolved. Merging this marks all six merged. #887 (seeing other players eat and use items, #803) conflicts in six files and gets its own rebase. ## Included - #881: guests open hoppers, dispensers and droppers. - #882: guests use brewing stands. - #883: pressure plates, tripwires and detector rails see the guests. - #884: guests see mobs flash when hit (DamageEvent). - #885: everyone sees players' arm swings. - #886: the guest's clock stops with `/time pause` and keeps up with the server's game time. ## Conflict resolutions - `tools/lan_e2e.py`: order-preserving union of `CHECKS` and `CHECK_FNS`; docstring lines and new check functions kept from both sides. A script checked that no function from either parent is lost and that every check has a function. - `game/lan_crafting.rs` (#882): #882's `match`, with a Furnace arm and a Brewing arm, using main's `recipes()` accessor (#878). - `packets/play.rs` test (#884): both round-trip packets kept (UpdateAttributes and DamageEvent). - `game/lan_actions.rs` (#885): main's `enter_guest`/`leave_guest` split (#879), with #885's swing counting moved into `GuestSwap`. The host's count is saved when a guest starts acting, and the guest's swings are credited when it stops. ## Checks (Mac mini, on this branch) - `cargo fmt --check` and workspace clippy `-D warnings`: clean. - `cargo test -p horizon-client -p horizon-protocol` with resources: all pass (client lib 880 passed). - `parity.py lan dedicated_server server_entities`: 3/3 pass. - `lan_e2e` without `--server-thread`: machines, brewing, plates, hurt, swings, time, respawn, chat, light and pvp all pass. pvp failed once at the end of the long sequence ("pvp off still hurts"), then passed in three reruns: alone, after time/respawn/chat, and after merging main. - `lan_e2e --server-thread`: machines, brewing, hurt, swings, time, respawn, chat and pvp pass. `plates` fails there as on main, because blocks only tick near a local player (#890, being fixed separately). - After merging the latest main (server-host-8, modpacks-7): clippy clean, client tests pass, `light`/`plates`/`pvp` pass. 🤖 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 16:00:01 +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#2906
No description provided.