[PR #3620] [MERGED] ender pearl: one that hits an end crystal still takes its thrower there #5098

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

📋 Pull Request Information

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

Base: main ← Head: pearl-through-end-crystal


📝 Commits (1)

  • 0bf91b8 ender pearl: one that hits an end crystal still takes its thrower there

📊 Changes

1 file changed (+9 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+9 -1)

📄 Description

What and why

An ender pearl thrown at an end crystal blew the crystal up but left its thrower where they stood: a thrown projectile that hit a crystal or a dragon part stopped at onHitEntity. A pearl, an egg and a snowball now go on to their onHit, so the pearl takes its thrower there, into the blast. Fixes #3081.

Vanilla reference

Projectile.onHit calls onHitEntity, then ThrownEnderpearl.onHit teleports the owner, ThrownEgg.onHit hatches and Snowball.onHit breaks, whatever entity was hit; EndCrystal.hurtServer only explodes the crystal.

Self-check

pr_ready (tools/pr_ready.py --quick on PC-Lost, against origin/main at 11494e17f, 6 min 58 s)

Check Result
Scope ✅ 1 files, +9 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 408 run, FAILED (failures=1, skipped=12) (1 min 7 s)
rustfmt ✅ (12 s)
clippy ✅ (1 min 39 s)
tests: horizon-client ✅ 795 passed (2 min 35 s)
doc tests ✅ 0 passed (1 min 21 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)

The one failure under Python tests is test_port_publish.PublishTests.test_body_has_names_and_signatures_only, a ~/ against ~\ path check that fails 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/3620 **Author:** [@iLostName](https://github.com/iLostName) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `pearl-through-end-crystal` --- ### 📝 Commits (1) - [`0bf91b8`](https://github.com/horizon-rust/horizon/commit/0bf91b8822feee301a2e709708885bf2d15096e2) ender pearl: one that hits an end crystal still takes its thrower there ### 📊 Changes **1 file changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+9 -1) </details> ### 📄 Description ## What and why An ender pearl thrown at an end crystal blew the crystal up but left its thrower where they stood: a thrown projectile that hit a crystal or a dragon part stopped at `onHitEntity`. A pearl, an egg and a snowball now go on to their `onHit`, so the pearl takes its thrower there, into the blast. Fixes #3081. ## Vanilla reference `Projectile.onHit` calls `onHitEntity`, then `ThrownEnderpearl.onHit` teleports the owner, `ThrownEgg.onHit` hatches and `Snowball.onHit` breaks, whatever entity was hit; `EndCrystal.hurtServer` only explodes the crystal. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on PC-Lost, against origin/main at 11494e17f, 6 min 58 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +9 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 408 run, FAILED (failures=1, skipped=12) (1 min 7 s) | | rustfmt | ✅ (12 s) | | clippy | ✅ (1 min 39 s) | | tests: horizon-client | ✅ 795 passed (2 min 35 s) | | doc tests | ✅ 0 passed (1 min 21 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) | The one failure under Python tests is `test_port_publish.PublishTests.test_body_has_names_and_signatures_only`, a `~/` against `~\` path check that fails 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:10:13 +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#5098
No description provided.