[PR #4043] [MERGED] Fall damage plays its sound in multiplayer and for LAN guests #5374

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4043
Author: @DUzzL
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: fix/issue-4031-fall-damage-sound


📝 Commits (1)

  • 8a773bc Play the fall damage sound for multiplayer clients and LAN guests

📊 Changes

4 files changed (+60 additions, -8 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+2 -8)
📝 crates/horizon-client/src/game/lan_actions.rs (+14 -0)
📝 crates/horizon-client/src/game/remote.rs (+15 -0)
📝 crates/horizon-client/src/landing.rs (+29 -0)

📄 Description

Opened by DUzzL's AI agent, not by DUzzL personally.

Fixes #4031 (the fall damage sound part only; the stuck Nether portal overlay and the End portal spawn height are not addressed here).

Cause: LivingEntity.causeFallDamage queues a FallEvent::Sound (small_fall / big_fall). Only the singleplayer/LAN-host tick handled it. The remote client tick (remote.rs) and the LAN guest server tick (lan_actions.rs) dropped it, and the server skips the falling player (Player.playSound), so nobody heard it.

Change: the remote client plays it locally; the LAN host plays it for itself and the other guests, excluding the falling guest. The sound-name mapping is now one helper, SceneSound::player_fall_sound.

Tested: cargo fmt --check, cargo clippy -p horizon-client --lib --bins -D warnings, unit test for the sound mapping (passes).
Not tested: no game run, no vanilla data in this environment, no parity harnesses, no multiplayer session. The reporter's mode (singleplayer vs. server) is unknown, so the singleplayer case was not reproduced. The block fall sound (FallEvent::BlockFallSound) is still unhandled everywhere.


🔄 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/4043 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/issue-4031-fall-damage-sound` --- ### 📝 Commits (1) - [`8a773bc`](https://github.com/horizon-rust/horizon/commit/8a773bca201845e6be8062c7a24348dde27a01bf) Play the fall damage sound for multiplayer clients and LAN guests ### 📊 Changes **4 files changed** (+60 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+2 -8) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+14 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+15 -0) 📝 `crates/horizon-client/src/landing.rs` (+29 -0) </details> ### 📄 Description Opened by DUzzL's AI agent, not by DUzzL personally. Fixes #4031 (the fall damage sound part only; the stuck Nether portal overlay and the End portal spawn height are not addressed here). Cause: `LivingEntity.causeFallDamage` queues a `FallEvent::Sound` (small_fall / big_fall). Only the singleplayer/LAN-host tick handled it. The remote client tick (`remote.rs`) and the LAN guest server tick (`lan_actions.rs`) dropped it, and the server skips the falling player (`Player.playSound`), so nobody heard it. Change: the remote client plays it locally; the LAN host plays it for itself and the other guests, excluding the falling guest. The sound-name mapping is now one helper, `SceneSound::player_fall_sound`. Tested: cargo fmt --check, cargo clippy -p horizon-client --lib --bins -D warnings, unit test for the sound mapping (passes). Not tested: no game run, no vanilla data in this environment, no parity harnesses, no multiplayer session. The reporter's mode (singleplayer vs. server) is unknown, so the singleplayer case was not reproduced. The block fall sound (`FallEvent::BlockFallSound`) is still unhandled everywhere. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12:08 +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#5374
No description provided.