[PR #3068] [MERGED] death message: a creeper's blast names the creeper, not the last mob that hit #4781

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

📋 Pull Request Information

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

Base: main ← Head: creeper-death-message


📝 Commits (1)

  • 992c63e death message: a creeper's blast names the creeper, not the last mob that hit

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+6 -2)
📝 crates/horizon-client/src/mobs.rs (+3 -1)
📝 crates/horizon-client/src/mobs/hostile.rs (+8 -0)

📄 Description

What and why

"Player was blown up by Zombie" when a creeper killed a player a zombie had just hit: the creeper is out of the mob list by the time its blast is applied, so its name couldn't be looked up and the message fell back to the kill credit. MobEvent::ExplosionSource now carries the creeper's display name. Fixes #2978.

Vanilla reference

Creeper.explodeCreeper → level.explode(this, ...): the creeper is the blast's causing entity, and DamageSource.getLocalizedDeathMessage falls back to getKillCredit only when there is none.

Self-check

pr_ready (tools/pr_ready.py --quick on PC-Lost, against origin/main at 56f968e11, 3 min 27 s)

Check Result
Scope ✅ 3 files, +17 −3
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 398 run, FAILED (failures=16, errors=8, skipped=1) (1 min 15 s)
rustfmt ✅ (12 s)
clippy ✅ (16 s)
tests: horizon-client ❌ 1092 passed, 2 failed (1 min 16 s)
doc tests ✅ 0 passed (24 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Run on Windows: save::session_lock_is_exclusive, crash::stacks_start_at_the_panicking_frame and the Python tests (they call python3, the Microsoft Store stub here) fail there and are unrelated.


🔄 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/3068 **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:** `creeper-death-message` --- ### 📝 Commits (1) - [`992c63e`](https://github.com/horizon-rust/horizon/commit/992c63eefbd931899499f27daaf308a82931946a) death message: a creeper's blast names the creeper, not the last mob that hit ### 📊 Changes **3 files changed** (+17 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+6 -2) 📝 `crates/horizon-client/src/mobs.rs` (+3 -1) 📝 `crates/horizon-client/src/mobs/hostile.rs` (+8 -0) </details> ### 📄 Description ## What and why "Player was blown up by Zombie" when a creeper killed a player a zombie had just hit: the creeper is out of the mob list by the time its blast is applied, so its name couldn't be looked up and the message fell back to the kill credit. `MobEvent::ExplosionSource` now carries the creeper's display name. Fixes #2978. ## Vanilla reference `Creeper.explodeCreeper` → `level.explode(this, ...)`: the creeper is the blast's causing entity, and `DamageSource.getLocalizedDeathMessage` falls back to `getKillCredit` only when there is none. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on PC-Lost, against origin/main at 56f968e11, 3 min 27 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +17 −3 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 398 run, FAILED (failures=16, errors=8, skipped=1) (1 min 15 s) | | rustfmt | ✅ (12 s) | | clippy | ✅ (16 s) | | tests: horizon-client | ❌ 1092 passed, 2 failed (1 min 16 s) | | doc tests | ✅ 0 passed (24 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Run on Windows: `save::session_lock_is_exclusive`, `crash::stacks_start_at_the_panicking_frame` and the Python tests (they call `python3`, the Microsoft Store stub here) fail there and are unrelated. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:54 +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#4781
No description provided.