[GH-ISSUE #2717] Fall damage after flying down in creative and switching to survival #669

Closed
opened 2026-11-02 15:40:59 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2717

What I did: Enter a world, switch to creative, fly up high, then fly back down (actively flying down, not falling), stay c​lose to the ground whilst not touching it, switch to survival.
What happened: as soon as I touch the ground in survival I take the full fall damage, as if the whole creative flight was a fall.
What I expected: no damage, like vanilla, since fall distance doesn't accumulate while flying in creative. Horizon version: v0.2.80
OS, CPU, GPU: MacOS 27.0 Beta (26A5388g), M4 Pro, M4 Pro

I'm a software dev as well, and already provided the patch.
I'm doing this through discord tho, so:
'''diff
--- a/crates/horizon-client/src/game/lan_actions.rs
+++ b/crates/horizon-client/src/game/lan_actions.rs
@@ guest_server_tick
if w.climbable().unwrap_or(false) {
w.player.fall_distance = 0.0;
}

  •        // Player.travel resets the fall distance every tick while
    
  •        // abilities.flying: a creative guest who flew down and then
    
  •        // switched to survival lands without the flight's distance.
    
  •        if w.player.flying {
    
  •            w.player.fall_distance = 0.0;
    
  •        }
    

'''

Reported on Discord by ctrlzchampion in #horizon-bugs · Discord thread
Tags: gameplay

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2717 > What I did: Enter a world, switch to creative, fly up high, then fly back down (actively flying down, not falling), stay c​lose to the ground whilst not touching it, switch to survival. > What happened: as soon as I touch the ground in survival I take the full fall damage, as if the whole creative flight was a fall. > What I expected: no damage, like vanilla, since fall distance doesn't accumulate while flying in creative. Horizon version: v0.2.80 > OS, CPU, GPU: MacOS 27.0 Beta (26A5388g), M4 Pro, M4 Pro > > I'm a software dev as well, and already provided the patch. > I'm doing this through discord tho, so: > '''diff > --- a/crates/horizon-client/src/game/lan_actions.rs > +++ b/crates/horizon-client/src/game/lan_actions.rs > @@ guest_server_tick > if w.climbable().unwrap_or(false) { > w.player.fall_distance = 0.0; > } > + // Player.travel resets the fall distance every tick while > + // abilities.flying: a creative guest who flew down and then > + // switched to survival lands without the flight's distance. > + if w.player.flying { > + w.player.fall_distance = 0.0; > + } > ''' Reported on Discord by **ctrlzchampion** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1564577305534398564) Tags: gameplay <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:40:59 +07:00
Author
Owner

@kacpherek commented on GitHub (Oct 27, 2026):

Thanks ctrlzchampion for the report! A fix is up in #2724: a flying player now starts every server tick with no fall distance, like vanilla. It's waiting for review.

<!-- gh-comment-id:6438999010 --> @kacpherek commented on GitHub (Oct 27, 2026): Thanks ctrlzchampion for the report! A fix is up in #2724: a flying player now starts every server tick with no fall distance, like vanilla. It's waiting for review.
Author
Owner

@socksprox commented on GitHub (Oct 27, 2026):

🤖 Agent: Covered by open PR #2724 ("Clear a flying player's fall distance on the server tick").

<!-- gh-comment-id:6443368027 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: Covered by open PR #2724 ("Clear a flying player's fall distance on the server tick").
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#669
No description provided.