[PR #1160] [MERGED] LAN fixes: land the eight rebased B5 PRs together (#1138 #1139 #1140 #1142 #1146 #1147 #1148 #1151) #3375

Closed
opened 2026-11-03 04:09:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: integ/b5-lan-rest


📝 Commits (10+)

  • cb4ecfb A small fireball's fire is placed like vanilla's, and goes out
  • ba72a09 A player's blow turns a ghast's fireball back
  • 8df160f Piglins throw their barter toward the nearest player, guests included
  • 73c5a1c Explosions hurt and push every player, through a raised shield
  • 67569ef A LAN guest's worn armour protects it
  • def242e A mob a guest kills is the guest's kill
  • 5763854 A player's arrow hurts the other players on a served world
  • a4247e9 A guest's door, trapdoor, fence gate, lever and button use is predicted
  • ceff635 A guest draws a bow, and lets go to shoot
  • 56591ef A guest hears its door at once, and only once

📊 Changes

16 files changed (+1070 additions, -96 deletions)

View changed files

📝 crates/horizon-client/src/audio.rs (+7 -0)
📝 crates/horizon-client/src/game.rs (+11 -3)
📝 crates/horizon-client/src/game/combat.rs (+3 -0)
📝 crates/horizon-client/src/game/control.rs (+1 -0)
📝 crates/horizon-client/src/game/creatures.rs (+65 -16)
➕ crates/horizon-client/src/game/deflect.rs (+155 -0)
📝 crates/horizon-client/src/game/explosion.rs (+112 -50)
📝 crates/horizon-client/src/game/hand.rs (+1 -0)
📝 crates/horizon-client/src/game/lan_actions.rs (+74 -1)
📝 crates/horizon-client/src/game/lan_pvp.rs (+101 -1)
📝 crates/horizon-client/src/game/piglins.rs (+22 -5)
📝 crates/horizon-client/src/game/remote.rs (+130 -11)
📝 crates/horizon-client/src/game/sculk_fixture.rs (+1 -1)
📝 crates/horizon-client/src/game/wind.rs (+1 -1)
📝 crates/horizon-client/src/mobs.rs (+7 -2)
📝 tools/lan_e2e.py (+379 -5)

📄 Description

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

What

One branch merging the eight rebased B5 LAN PRs onto main, so they land together. Each adds its own lan_e2e check at the same three places in tools/lan_e2e.py (the CHECKS list, the check function, the dispatch table), so merging them one by one would conflict seven times.

When this merges, GitHub marks each of these as merged:

  • #1138: a small fireball's fire is placed like vanilla's
  • #1139: a player's blow turns a ghast's fireball back
  • #1140: piglins throw their barter toward the nearest player
  • #1142: explosions hurt and push every player
  • #1146: a LAN guest's worn armour protects it
  • #1147: a mob a guest kills is the guest's kill
  • #1148: players' arrows hit other players; a guest's bow shoots
  • #1151: a guest's door, trapdoor, gate, lever and button use is predicted

How the conflicts were resolved

Only tools/lan_e2e.py conflicted. In each hunk both sides were kept: the CHECKS list and the dispatch table take the union of the entries, and the check functions sit side by side. Then every top-level function each branch changed was compared with the result, and all are identical (0 mismatches across 8 branches). There are 48 checks, every one in the dispatch table, with no duplicates. The Rust code merged without conflicts.

Proof

  • The B5 agent's integration of these same eight heads on main 36689738:
    • tools/parity.py --changed origin/main passed 102/102, including dedicated_server, world_spawn, secure_chat and online_mode;
    • cargo test -p horizon-client passed 1093;
    • lan_e2e: 46/48 in-frame and 47/48 on --server-thread. The failing checks (swings, effects) fail only after earlier checks and pass alone; they're in FEATURES.md LATER 4l.
    • Results are commented on each PR.
  • On this branch: cargo fmt --all --check passes, workspace clippy -D warnings (pipefail) passes, and tools/lan_e2e.py parses.

🤖 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/1160 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `integ/b5-lan-rest` --- ### 📝 Commits (10+) - [`cb4ecfb`](https://github.com/horizon-rust/horizon/commit/cb4ecfbbe90d48f5a1036db9c35ea10244ea85db) A small fireball's fire is placed like vanilla's, and goes out - [`ba72a09`](https://github.com/horizon-rust/horizon/commit/ba72a097fa1370d36a63187f3b7a2f5952e01005) A player's blow turns a ghast's fireball back - [`8df160f`](https://github.com/horizon-rust/horizon/commit/8df160f63fc03377f9c9a617552f224f0e1340bb) Piglins throw their barter toward the nearest player, guests included - [`73c5a1c`](https://github.com/horizon-rust/horizon/commit/73c5a1c5d65474b485566c3666e0d964e07da102) Explosions hurt and push every player, through a raised shield - [`67569ef`](https://github.com/horizon-rust/horizon/commit/67569ef98423c6bdf65784b2715d139ea7f3204f) A LAN guest's worn armour protects it - [`def242e`](https://github.com/horizon-rust/horizon/commit/def242ecc1703b23e493034517e683fff3d55dff) A mob a guest kills is the guest's kill - [`5763854`](https://github.com/horizon-rust/horizon/commit/5763854b0d97e2a9e3f94d216d985f20719b86ce) A player's arrow hurts the other players on a served world - [`a4247e9`](https://github.com/horizon-rust/horizon/commit/a4247e9323f45f2e1a41c1e9715a3ed1406aa4ea) A guest's door, trapdoor, fence gate, lever and button use is predicted - [`ceff635`](https://github.com/horizon-rust/horizon/commit/ceff635615c893c104191ed9776cda9f67028462) A guest draws a bow, and lets go to shoot - [`56591ef`](https://github.com/horizon-rust/horizon/commit/56591efa5f4b38f20ce3474b5d8283d15475f989) A guest hears its door at once, and only once ### 📊 Changes **16 files changed** (+1070 additions, -96 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/audio.rs` (+7 -0) 📝 `crates/horizon-client/src/game.rs` (+11 -3) 📝 `crates/horizon-client/src/game/combat.rs` (+3 -0) 📝 `crates/horizon-client/src/game/control.rs` (+1 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+65 -16) ➕ `crates/horizon-client/src/game/deflect.rs` (+155 -0) 📝 `crates/horizon-client/src/game/explosion.rs` (+112 -50) 📝 `crates/horizon-client/src/game/hand.rs` (+1 -0) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+74 -1) 📝 `crates/horizon-client/src/game/lan_pvp.rs` (+101 -1) 📝 `crates/horizon-client/src/game/piglins.rs` (+22 -5) 📝 `crates/horizon-client/src/game/remote.rs` (+130 -11) 📝 `crates/horizon-client/src/game/sculk_fixture.rs` (+1 -1) 📝 `crates/horizon-client/src/game/wind.rs` (+1 -1) 📝 `crates/horizon-client/src/mobs.rs` (+7 -2) 📝 `tools/lan_e2e.py` (+379 -5) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What One branch merging the eight rebased B5 LAN PRs onto main, so they land together. Each adds its own `lan_e2e` check at the same three places in `tools/lan_e2e.py` (the `CHECKS` list, the check function, the dispatch table), so merging them one by one would conflict seven times. When this merges, GitHub marks each of these as merged: - #1138: a small fireball's fire is placed like vanilla's - #1139: a player's blow turns a ghast's fireball back - #1140: piglins throw their barter toward the nearest player - #1142: explosions hurt and push every player - #1146: a LAN guest's worn armour protects it - #1147: a mob a guest kills is the guest's kill - #1148: players' arrows hit other players; a guest's bow shoots - #1151: a guest's door, trapdoor, gate, lever and button use is predicted ## How the conflicts were resolved Only `tools/lan_e2e.py` conflicted. In each hunk both sides were kept: the `CHECKS` list and the dispatch table take the union of the entries, and the check functions sit side by side. Then every top-level function each branch changed was compared with the result, and all are identical (0 mismatches across 8 branches). There are 48 checks, every one in the dispatch table, with no duplicates. The Rust code merged without conflicts. ## Proof - The B5 agent's integration of these same eight heads on main 36689738: - `tools/parity.py --changed origin/main` passed 102/102, including dedicated_server, world_spawn, secure_chat and online_mode; - `cargo test -p horizon-client` passed 1093; - `lan_e2e`: 46/48 in-frame and 47/48 on `--server-thread`. The failing checks (`swings`, `effects`) fail only after earlier checks and pass alone; they're in FEATURES.md LATER 4l. - Results are commented on each PR. - On this branch: `cargo fmt --all --check` passes, workspace clippy `-D warnings` (pipefail) passes, and `tools/lan_e2e.py` parses. 🤖 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-03 04:09:04 +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#3375
No description provided.