[PR #4285] [CLOSED] Apply the jump velocity for LAN guests on the server copy #5540

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

📋 Pull Request Information

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

Base: main ← Head: fix/issue-4278-guest-jump-velocity


📝 Commits (1)

  • 1ad46cf Give a guest's server copy the velocity of its jump so Lunge in the air keeps it

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game/lan_actions.rs (+3 -3)

📄 Description

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

Refs #4278. This PR fixes the cut jump in y. The same-tick z offset of 0.0217 in the report is not explained and not addressed.

Cause: guest_server_tick in game/lan_actions.rs charged the jump's exhaustion on the server copy of the player but never applied the jump velocity. So Lunge's push began from gravity at rest, as the issue measured.

Change: the server copy now calls MotionWorld::jump_from_ground, the same function the local client uses. It sets y to the jump power, adds the sprint boost, charges the exhaustion once, and marks the player for sync, so the SetEntityMotion push carries the jump. It is gated on the same on-ground-to-airborne, moving-upward condition as before. Ordinary walking and falling are not reached.

Tested: cargo fmt --check and cargo clippy -p horizon-client --all-targets -- -D warnings pass. cargo test -p horizon-client --lib guest passes (8 of 8). No new test was added.

Not tested: no in-game or live-server run. The packet values were not compared against the issue's table or vanilla source. The 0.0217 z offset is unexplained. 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/4285 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/issue-4278-guest-jump-velocity` --- ### 📝 Commits (1) - [`1ad46cf`](https://github.com/horizon-rust/horizon/commit/1ad46cfc9a068c4deeb0bd470e5faeef30122c9f) Give a guest's server copy the velocity of its jump so Lunge in the air keeps it ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_actions.rs` (+3 -3) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Refs #4278. This PR fixes the cut jump in y. The same-tick z offset of 0.0217 in the report is not explained and not addressed. **Cause:** `guest_server_tick` in `game/lan_actions.rs` charged the jump's exhaustion on the server copy of the player but never applied the jump velocity. So Lunge's push began from gravity at rest, as the issue measured. **Change:** the server copy now calls `MotionWorld::jump_from_ground`, the same function the local client uses. It sets y to the jump power, adds the sprint boost, charges the exhaustion once, and marks the player for sync, so the `SetEntityMotion` push carries the jump. It is gated on the same on-ground-to-airborne, moving-upward condition as before. Ordinary walking and falling are not reached. **Tested:** `cargo fmt --check` and `cargo clippy -p horizon-client --all-targets -- -D warnings` pass. `cargo test -p horizon-client --lib guest` passes (8 of 8). No new test was added. **Not tested:** no in-game or live-server run. The packet values were not compared against the issue's table or vanilla source. The 0.0217 z offset is unexplained. `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:13:17 +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#5540
No description provided.