[PR #2724] [MERGED] Clear a flying player's fall distance on the server tick #4566

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

📋 Pull Request Information

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

Base: main ← Head: fix/2717-flying-fall-distance


📝 Commits (2)

  • 50cd557 Clear a flying player's fall distance on the server tick
  • 2487d29 Merge main into fix/2717-flying-fall-distance

📊 Changes

1 file changed (+7 additions, -0 deletions)

View changed files

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

📄 Description

What and why

Fly down in creative, switch to survival, and the first landing deals the damage of the whole flight. In vanilla a flying player never builds up fall distance.

The server tick for a player on a server (the in-process one in single player) ran the moves with fall damage checks but never cleared the fall distance while flying, so it kept adding up. The tick now clears it at the start while the player is flying and not riding.

Fixes #2717.

Vanilla reference

Player.aiStep: if (this.abilities.flying && !this.isPassenger()) this.resetFallDistance();

Self-check

cargo check -p horizon-client passes.


🔄 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/2724 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/2717-flying-fall-distance` --- ### 📝 Commits (2) - [`50cd557`](https://github.com/horizon-rust/horizon/commit/50cd5576f9fcaedd7373535afa1dbf4f94b6712c) Clear a flying player's fall distance on the server tick - [`2487d29`](https://github.com/horizon-rust/horizon/commit/2487d2931844c0f5f4e2d56f8c24842ecca2d991) Merge main into fix/2717-flying-fall-distance ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_actions.rs` (+7 -0) </details> ### 📄 Description ## What and why Fly down in creative, switch to survival, and the first landing deals the damage of the whole flight. In vanilla a flying player never builds up fall distance. The server tick for a player on a server (the in-process one in single player) ran the moves with fall damage checks but never cleared the fall distance while flying, so it kept adding up. The tick now clears it at the start while the player is flying and not riding. Fixes #2717. ## Vanilla reference `Player.aiStep`: `if (this.abilities.flying && !this.isPassenger()) this.resetFallDistance();` ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:18:07 +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#4566
No description provided.