[PR #5060] [MERGED] End a wind charge's fall context when the player lands in water #6033

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5060
Author: @MSedgeMC
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/impulse-liquid-reset


📝 Commits (1)

  • 7b9a183 End a wind charge's fall context when the player lands in water

📊 Changes

3 files changed (+58 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/lan_actions.rs (+7 -0)
📝 crates/horizon-world/src/living_fall.rs (+50 -0)
📝 tools/port_map/game-006.tsv (+1 -1)

📄 Description

Fixes the LivingEntity.hasLandedInLiquid row in the port ledger. (No issue.)

Vanilla's handlePlayerPositionChange clears the impulse context — the position fall damage is measured from — when the player is on the ground or has landed in liquid, is climbing, or is a spectator. hasLandedInLiquid is getDeltaMovement().y < 9.9999997E-6 && isInLiquid(). Horizon reset it only for climbing and for being stuck in a block, so after a wind charge into water the impact position stayed set, and the next fall from anywhere above that point measured a negative distance and did no damage.

Proven: the new test passes on a build box and the whole horizon-client lib suite passes with it (940 passed): a move tick in liquid with non-upward velocity and no grace left clears the impact position, and the same tick on dry ground leaves it set.

Not proven: nothing in a game — the check is a wind-charge burst into a pool, a wait past the grace, then a fall from height onto dry land, which should now hurt.


🔄 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/5060 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/impulse-liquid-reset` --- ### 📝 Commits (1) - [`7b9a183`](https://github.com/horizon-rust/horizon/commit/7b9a18331d62ab00f9bd65c8904b74a0c66890fd) End a wind charge's fall context when the player lands in water ### 📊 Changes **3 files changed** (+58 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_actions.rs` (+7 -0) 📝 `crates/horizon-world/src/living_fall.rs` (+50 -0) 📝 `tools/port_map/game-006.tsv` (+1 -1) </details> ### 📄 Description Fixes the `LivingEntity.hasLandedInLiquid` row in the port ledger. (No issue.) Vanilla's `handlePlayerPositionChange` clears the impulse context — the position fall damage is measured from — when the player is on the ground **or has landed in liquid**, is climbing, or is a spectator. `hasLandedInLiquid` is `getDeltaMovement().y < 9.9999997E-6 && isInLiquid()`. Horizon reset it only for climbing and for being stuck in a block, so after a wind charge into water the impact position stayed set, and the next fall from anywhere above that point measured a negative distance and did no damage. **Proven:** the new test passes on a build box and the whole `horizon-client` lib suite passes with it (940 passed): a move tick in liquid with non-upward velocity and no grace left clears the impact position, and the same tick on dry ground leaves it set. **Not proven:** nothing in a game — the check is a wind-charge burst into a pool, a wait past the grace, then a fall from height onto dry land, which should now hurt. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:16:45 +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#6033
No description provided.