[PR #1103] [MERGED] Elytra: a glide that isn't diving keeps the fall distance at 1 (no landing damage) #3049

Closed
opened 2026-11-02 16:01:05 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/elytra-fall-distance


📝 Commits (1)

  • 705be14 Elytra: a glide that isn't diving keeps the fall distance at 1

📊 Changes

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

View changed files

📝 crates/horizon-client/src/motion.rs (+51 -0)

📄 Description

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

Fixes #1046. Reported by Visivel on Discord: thanks!

What

Landing after an elytra glide no longer deals the fall damage of the whole height you glided down.

Why

LivingEntity.updateFallFlying starts with Entity.checkFallDistanceAccumulation: while gliding and falling slower than 0.5 blocks a tick, the fall distance is capped at 1. Horizon kept accumulating it for the whole glide. A dive (faster than 0.5 a tick) still accumulates, as in vanilla.

How

motion.rs: the cap at the start of the glide tick. New test a_glide_that_is_not_diving_keeps_the_fall_distance_at_one (fails without the fix: the distance stays above 30).

Proof

Self-check on one integration commit holding the seven B4 branches (#1049 #1050 #1046 #1056 #505 #504 #1097), on origin/main caeffffb, on the Mac mini:

cargo fmt --all --check                                                   ok
set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings    exit 0
cargo test -p horizon-client -p horizon-world                             all passed, 0 failed (horizon-client lib 959, horizon-world lib 152, ...)

tools/parity.py --changed origin/main (selects 304 of 326 harnesses: the branches touch game.rs): running on the integration commit; the result follows in a comment.

Needs Ludovic

Nothing.

🤖 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/1103 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/elytra-fall-distance` --- ### 📝 Commits (1) - [`705be14`](https://github.com/horizon-rust/horizon/commit/705be141d7411937af18337e86562c82e93f19b3) Elytra: a glide that isn't diving keeps the fall distance at 1 ### 📊 Changes **1 file changed** (+51 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/motion.rs` (+51 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fixes #1046. Reported by **Visivel** on Discord: thanks! ## What Landing after an elytra glide no longer deals the fall damage of the whole height you glided down. ## Why `LivingEntity.updateFallFlying` starts with `Entity.checkFallDistanceAccumulation`: while gliding and falling slower than 0.5 blocks a tick, the fall distance is capped at 1. Horizon kept accumulating it for the whole glide. A dive (faster than 0.5 a tick) still accumulates, as in vanilla. ## How `motion.rs`: the cap at the start of the glide tick. New test `a_glide_that_is_not_diving_keeps_the_fall_distance_at_one` (fails without the fix: the distance stays above 30). ## Proof Self-check on one integration commit holding the seven B4 branches (#1049 #1050 #1046 #1056 #505 #504 #1097), on origin/main `caeffffb`, on the Mac mini: ``` cargo fmt --all --check ok set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings exit 0 cargo test -p horizon-client -p horizon-world all passed, 0 failed (horizon-client lib 959, horizon-world lib 152, ...) ``` `tools/parity.py --changed origin/main` (selects 304 of 326 harnesses: the branches touch `game.rs`): running on the integration commit; the result follows in a comment. ## Needs Ludovic Nothing. 🤖 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-02 16:01:05 +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#3049
No description provided.