[PR #1263] [MERGED] Fix #1255: server players climbing down a ladder take no fall damage #3466

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

📋 Pull Request Information

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

Base: main ← Head: fix/1255-ladder-fall


📝 Commits (2)

  • 724f423 Fix #1255: server players climbing down a ladder take no fall damage
  • 90afc3d Merge main into fix/1255-ladder-fall (lan_e2e: keep both the ladder and boats checks)

📊 Changes

3 files changed (+41 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game/lan_actions.rs (+7 -0)
📝 crates/horizon-client/src/motion.rs (+2 -1)
📝 tools/lan_e2e.py (+32 -2)

📄 Description

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

Fixes #1255

What

Climbing down a ladder on a server hurt the player where it landed.

In vanilla, Player.getMoveSimulationType is AUTHORITATIVE_SIDE_AND_SERVER, so a ServerPlayer travels on the server too, and every tick it is on a ladder or vine LivingEntity.handleOnClimbable resets its fall distance. Horizon's server only replays the client's moves (ServerPlayer.doCheckFallDamage), so the fall distance grew all the way down the ladder. This applies to LAN guests and players on a dedicated server. It also hit the single player while single player ran on the server thread by default (#1114, made opt-in again by #1257).

guest_server_tick now resets the fall distance each tick the player is on a climbable block. MotionWorld::climbable becomes pub for that; its behaviour doesn't change.

It is not a regression from today's changes for multiplayer: the server never had this.

Test

lan_e2e ladder: the guest slides down ten blocks of ladder with no input and must land with full health.

How tested (Mac mini, main 02260048)

  • Without the fix, a probe with the same setup went from 20 to 13 health: 10 blocks, so 7 fall damage.
  • With the fix: ladder: PASS {'landed': [16.5, 65.0, 8.4], 'health': 20.0}, tab: PASS.
  • cargo fmt --check and cargo clippy -p horizon-client --all-targets -- -D warnings: OK.
  • No parity run here. motion.rs changes only in visibility, and CI's parity job covers lan_actions.rs.

#1257 adds the boats check next to this one in tools/lan_e2e.py (CHECKS and CHECK_FNS). Whichever merges second needs a one-line rebase there.

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/1263 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/1255-ladder-fall` --- ### 📝 Commits (2) - [`724f423`](https://github.com/horizon-rust/horizon/commit/724f42355f8884824f46189c64525e24ba02a0a4) Fix #1255: server players climbing down a ladder take no fall damage - [`90afc3d`](https://github.com/horizon-rust/horizon/commit/90afc3dbf47f0b3d587b63b3f0ca85842f199c8e) Merge main into fix/1255-ladder-fall (lan_e2e: keep both the ladder and boats checks) ### 📊 Changes **3 files changed** (+41 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_actions.rs` (+7 -0) 📝 `crates/horizon-client/src/motion.rs` (+2 -1) 📝 `tools/lan_e2e.py` (+32 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fixes #1255 ## What Climbing down a ladder on a server hurt the player where it landed. In vanilla, `Player.getMoveSimulationType` is `AUTHORITATIVE_SIDE_AND_SERVER`, so a `ServerPlayer` travels on the server too, and every tick it is on a ladder or vine `LivingEntity.handleOnClimbable` resets its fall distance. Horizon's server only replays the client's moves (`ServerPlayer.doCheckFallDamage`), so the fall distance grew all the way down the ladder. This applies to LAN guests and players on a dedicated server. It also hit the single player while single player ran on the server thread by default (#1114, made opt-in again by #1257). `guest_server_tick` now resets the fall distance each tick the player is on a climbable block. `MotionWorld::climbable` becomes `pub` for that; its behaviour doesn't change. It is not a regression from today's changes for multiplayer: the server never had this. ## Test `lan_e2e ladder`: the guest slides down ten blocks of ladder with no input and must land with full health. ## How tested (Mac mini, main 02260048) - Without the fix, a probe with the same setup went from 20 to 13 health: 10 blocks, so 7 fall damage. - With the fix: `ladder: PASS {'landed': [16.5, 65.0, 8.4], 'health': 20.0}`, `tab: PASS`. - `cargo fmt --check` and `cargo clippy -p horizon-client --all-targets -- -D warnings`: OK. - No parity run here. `motion.rs` changes only in visibility, and CI's parity job covers `lan_actions.rs`. #1257 adds the `boats` check next to this one in `tools/lan_e2e.py` (`CHECKS` and `CHECK_FNS`). Whichever merges second needs a one-line rebase there. ## 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-03 04:09:44 +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#3466
No description provided.