[PR #6508] [MERGED] Only the controlling rider's paddle packets move a boat #6924

Closed
opened 2026-11-03 06:29:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6508
Author: @MSedgeMC
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/boat-paddle-rider


📝 Commits (1)

  • fb37d64 Only the controlling rider's paddle packets move a boat

📊 Changes

6 files changed (+78 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/lan.rs (+3 -0)
📝 crates/horizon-client/src/game/lan_actions.rs (+11 -0)
📝 crates/horizon-client/src/game/lan_vehicles.rs (+23 -2)
📝 crates/horizon-client/src/lan/guest.rs (+6 -0)
📝 crates/horizon-client/src/lan/hub.rs (+3 -0)
📝 tools/test_boat_paddle_reset_parity.py (+32 -0)

📄 Description

Vanilla's ServerGamePacketListenerImpl.handlePaddleBoat applies a boat's paddles only when the sender is its controlling passenger (player.getControlledVehicle()), and Entity.addPassenger seats the first player in front, so the second player in a boat moves no paddle.

Horizon took guest_paddle_boat from any guest riding the boat, so the second seat's client set the boat's paddles and its paddle metadata.

Proven: python3 tools/test_boat_paddle_reset_parity.py on the build VM against a vanilla 26.3 server. Before the fix the transcripts differed — Horizon recorded two-riders-second-left 12 false, two-riders-second-stop 11 false and two-riders-first-right 11 true where vanilla recorded only two-riders-first-right 12 false — and after it the harness prints boat paddle resets: 26 metadata transitions match vanilla. cargo test -q -p horizon-client --lib lan passes, and rustfmt --edition 2024 --check is clean on the five changed files.

Not proven: handleMoveVehicle has the same getControlledVehicle() condition and still accepts a second rider's vehicle move; the harness client has no vehicle-move command, so nothing here exercises it. Also unproven: two riders restoring into one boat on join take their seat order from the load order rather than the saved Passengers order, and the drawn paddle animation.


🔄 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/6508 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/boat-paddle-rider` --- ### 📝 Commits (1) - [`fb37d64`](https://github.com/horizon-rust/horizon/commit/fb37d6424f938cacebffe5b83291c63bdd5152e0) Only the controlling rider's paddle packets move a boat ### 📊 Changes **6 files changed** (+78 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan.rs` (+3 -0) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+11 -0) 📝 `crates/horizon-client/src/game/lan_vehicles.rs` (+23 -2) 📝 `crates/horizon-client/src/lan/guest.rs` (+6 -0) 📝 `crates/horizon-client/src/lan/hub.rs` (+3 -0) 📝 `tools/test_boat_paddle_reset_parity.py` (+32 -0) </details> ### 📄 Description Vanilla's `ServerGamePacketListenerImpl.handlePaddleBoat` applies a boat's paddles only when the sender is its controlling passenger (`player.getControlledVehicle()`), and `Entity.addPassenger` seats the first player in front, so the second player in a boat moves no paddle. Horizon took `guest_paddle_boat` from any guest riding the boat, so the second seat's client set the boat's paddles and its paddle metadata. **Proven:** `python3 tools/test_boat_paddle_reset_parity.py` on the build VM against a vanilla 26.3 server. Before the fix the transcripts differed — Horizon recorded `two-riders-second-left 12 false`, `two-riders-second-stop 11 false` and `two-riders-first-right 11 true` where vanilla recorded only `two-riders-first-right 12 false` — and after it the harness prints `boat paddle resets: 26 metadata transitions match vanilla`. `cargo test -q -p horizon-client --lib lan` passes, and `rustfmt --edition 2024 --check` is clean on the five changed files. **Not proven:** `handleMoveVehicle` has the same `getControlledVehicle()` condition and still accepts a second rider's vehicle move; the harness client has no vehicle-move command, so nothing here exercises it. Also unproven: two riders restoring into one boat on join take their seat order from the load order rather than the saved `Passengers` order, and the drawn paddle animation. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:29:18 +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#6924
No description provided.