[PR #5787] [MERGED] Client: the input packet carries the auto-jump, as vanilla's does #6494

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

📋 Pull Request Information

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

Base: main ← Head: fix/client-input-auto-jump


📝 Commits (1)

  • 17410e0 Client: the input packet carries the auto-jump, as vanilla's does

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/remote.rs (+5 -1)

📄 Description

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

Fixes #5786. Part of #5725.

LocalPlayer.sendChanges sends input.keyPresses, which an auto-jump's makeJump has set to jump for that tick. The Horizon client sent its keys as held, so with Auto-Jump on the server saw a jump its keys didn't allow. The input it sends now has the jump bit on the tick the player's motion auto-jumped (was_auto_jump), as vanilla's does. The next tick's input drops it again, as vanilla's does.

Proof. Same server binary, prediction log-only, a 4-round staircase walk (one block up every 3) with autoJump:true in options.txt:

  • main's client: 75 prediction flags (+0.420, +0.412, +0.403, +0.395, +0.249…, the same numbers as the official server's log);
  • this branch's client: 0.

A sprint-jump around a flat world gives 0 flags with either client.

It only changes what the client sends, so it takes effect as players update. Until then the server keeps flagging old clients' auto-jumps (prediction is log-only).

pr_ready

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 7a8a97dd5, 6 min 55 s)

Check Result
Scope ✅ 1 files, +5 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 511 passed (2 min 3 s)
rustfmt ✅ (6 s)
clippy ✅ (1 s)
tests: horizon-client ✅ 1656 passed (4 min 31 s)
doc tests ✅ 0 passed (2 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 34 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 22 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/5787 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/client-input-auto-jump` --- ### 📝 Commits (1) - [`17410e0`](https://github.com/horizon-rust/horizon/commit/17410e01233c2466ed52bea34b18daeffa851b31) Client: the input packet carries the auto-jump, as vanilla's does ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+5 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fixes #5786. Part of #5725. `LocalPlayer.sendChanges` sends `input.keyPresses`, which an auto-jump's `makeJump` has set to jump for that tick. The Horizon client sent its keys as held, so with Auto-Jump on the server saw a jump its keys didn't allow. The input it sends now has the jump bit on the tick the player's motion auto-jumped (`was_auto_jump`), as vanilla's does. The next tick's input drops it again, as vanilla's does. **Proof.** Same server binary, prediction log-only, a 4-round staircase walk (one block up every 3) with `autoJump:true` in options.txt: - main's client: **75** prediction flags (`+0.420`, `+0.412`, `+0.403`, `+0.395`, `+0.249`…, the same numbers as the official server's log); - this branch's client: **0**. A sprint-jump around a flat world gives 0 flags with either client. It only changes what the client sends, so it takes effect as players update. Until then the server keeps flagging old clients' auto-jumps (prediction is log-only). <details><summary>pr_ready</summary> **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 7a8a97dd5, 6 min 55 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +5 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 511 passed (2 min 3 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (1 s) | | tests: horizon-client | ✅ 1656 passed (4 min 31 s) | | doc tests | ✅ 0 passed (2 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 34 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 22 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | </details> 🤖 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 06:21:27 +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#6494
No description provided.