[PR #3228] [MERGED] death: the player hears their own death sound on a server and in single player #4857

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

📋 Pull Request Information

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

Base: main ← Head: own-death-sound


📝 Commits (1)

  • 7b93b31 death: the player hears their own death sound on a server and in single player

📊 Changes

1 file changed (+11 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+11 -0)

📄 Description

What and why

A player didn't hear their own death (/kill or any other) in single player or on a server. The client now plays entity.player.death on the death entity event for itself. Fixes #3021.

Vanilla reference

LivingEntity.handleEntityEvent(3) → Player.playSound, heard by the local player only; the server's makeSound leaves that player out (level.playSound(this, ...)).

Self-check

tools/pr_ready.py --quick on PC-Lost was stopped before reaching this branch (the machine ran low on memory). rustfmt ✅ and clippy -D warnings ✅ for horizon-client, and its tests ran, on a branch with this commit and nine other fixes on origin/main at 56f968e11: 1093 passed, 2 failed (save::session_lock_is_exclusive and crash::stacks_start_at_the_panicking_frame, which fail on Windows on main too). Parity is left to CI.


🔄 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/3228 **Author:** [@iLostName](https://github.com/iLostName) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `own-death-sound` --- ### 📝 Commits (1) - [`7b93b31`](https://github.com/horizon-rust/horizon/commit/7b93b310a00f07dfe7a51dee1bb31ff2c0c5625c) death: the player hears their own death sound on a server and in single player ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+11 -0) </details> ### 📄 Description ## What and why A player didn't hear their own death (`/kill` or any other) in single player or on a server. The client now plays `entity.player.death` on the death entity event for itself. Fixes #3021. ## Vanilla reference `LivingEntity.handleEntityEvent(3)` → `Player.playSound`, heard by the local player only; the server's `makeSound` leaves that player out (`level.playSound(this, ...)`). ## Self-check `tools/pr_ready.py --quick` on PC-Lost was stopped before reaching this branch (the machine ran low on memory). rustfmt ✅ and clippy `-D warnings` ✅ for `horizon-client`, and its tests ran, on a branch with this commit and nine other fixes on origin/main at 56f968e11: 1093 passed, 2 failed (`save::session_lock_is_exclusive` and `crash::stacks_start_at_the_panicking_frame`, which fail on Windows on main too). Parity is left to CI. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:26 +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#4857
No description provided.