[PR #4113] [CLOSED] Let the mounted Happy Ghast respond to rider input #5427

Closed
opened 2026-11-03 05:12:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4113
Author: @DUzzL
Created: 10/30/2026
Status: ❌ Closed

Base: main ← Head: fix/issue-4107-happy-ghast-steer


📝 Commits (2)

  • 6770305 Steer a harnessed happy ghast on a server: the rider's client moves it and reports MoveVehicle
  • 9b343d3 Only the first passenger steers a remote happy ghast

📊 Changes

2 files changed (+90 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+7 -0)
📝 crates/horizon-client/src/game/remote_vehicles.rs (+83 -0)

📄 Description

🤖 Opened by DUzzL's AI agent, not by DUzzL personally.

Fixes #4107

Cause: on a Java server the rider's client moves a harnessed Happy Ghast and reports it with MoveVehicle. Horizon only did that for boats. For the ghast it sent PlayerInput and interpolated the server's copy, so nothing moved it. This is from memory of vanilla, not checked against vanilla source.

Change: in game/remote_vehicles.rs and game/remote.rs, a harnessed adult ghast gets the rider's input and is ticked locally, and its position is sent as MoveVehicle. Server interpolation is skipped while it is ridden. A clientbound MoveVehicle corrects it. The first passenger drives it; other passengers see the server's copy. The rider is cleared on dismount. Boats, horses and carts are unchanged.

Tested: cargo fmt --check and cargo clippy -p horizon-client --all-targets -- -D warnings pass (only horizon-client is touched). cargo test -p horizon-client --lib ghast passes (4 of 4) and --bins passes (194 and 18; 3 ignored). No new test was added.

Not tested: no in-game run and no live server. The first-passenger rule and whether the server accepts MoveVehicle from a ghast rider are from memory of vanilla. The local tick drops that tick's events, so damage or sounds from it are lost. No parity harness run (no .local vanilla data here). tools/pr_ready.py not run.


🔄 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/4113 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/issue-4107-happy-ghast-steer` --- ### 📝 Commits (2) - [`6770305`](https://github.com/horizon-rust/horizon/commit/67703050584541165798894af195f0acdd99ef07) Steer a harnessed happy ghast on a server: the rider's client moves it and reports MoveVehicle - [`9b343d3`](https://github.com/horizon-rust/horizon/commit/9b343d355ab63b55828712b5bc7c5636367560a7) Only the first passenger steers a remote happy ghast ### 📊 Changes **2 files changed** (+90 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+7 -0) 📝 `crates/horizon-client/src/game/remote_vehicles.rs` (+83 -0) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Fixes #4107 **Cause:** on a Java server the rider's client moves a harnessed Happy Ghast and reports it with `MoveVehicle`. Horizon only did that for boats. For the ghast it sent `PlayerInput` and interpolated the server's copy, so nothing moved it. This is from memory of vanilla, not checked against vanilla source. **Change:** in `game/remote_vehicles.rs` and `game/remote.rs`, a harnessed adult ghast gets the rider's input and is ticked locally, and its position is sent as `MoveVehicle`. Server interpolation is skipped while it is ridden. A clientbound `MoveVehicle` corrects it. The first passenger drives it; other passengers see the server's copy. The rider is cleared on dismount. Boats, horses and carts are unchanged. **Tested:** `cargo fmt --check` and `cargo clippy -p horizon-client --all-targets -- -D warnings` pass (only horizon-client is touched). `cargo test -p horizon-client --lib ghast` passes (4 of 4) and `--bins` passes (194 and 18; 3 ignored). No new test was added. **Not tested:** no in-game run and no live server. The first-passenger rule and whether the server accepts `MoveVehicle` from a ghast rider are from memory of vanilla. The local tick drops that tick's events, so damage or sounds from it are lost. No parity harness run (no `.local` vanilla data here). `tools/pr_ready.py` not run. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12:31 +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#5427
No description provided.