From 0d18ff7ca7f563e775cc7abf13b9f9c02135851d Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Sun, 25 Oct 2026 09:36:54 +0100 Subject: [PATCH] Fall distance: Levitation resets it too, as LivingEntity.aiStep does aiStep calls resetFallDistance under either Slow Falling or Levitation. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/motion.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/src/motion.rs b/crates/horizon-client/src/motion.rs index 5f91fee3a..da2d3a51e 100644 --- a/crates/horizon-client/src/motion.rs +++ b/crates/horizon-client/src/motion.rs @@ -1753,7 +1753,9 @@ impl EntityMoveWorld for MotionWorld<'_, '_, '_> { state: BlockStateId, position: BlockPos, ) -> Result<()> { - if self.player.status.slow_falling { + // LivingEntity.aiStep: Slow Falling and Levitation reset the fall + // distance every tick, so landing under either does not hurt. + if self.player.status.slow_falling || self.player.status.levitation.is_some() { self.player.fall_distance = 0.0; } if self.player.spawn_extra_particles_on_fall && grounded && self.player.fall_distance > 0.0