[PR #1850] [MERGED] fix: stop explosion-destroyed End crystals from exploding again #3817

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1850
Author: @rdbtCVS
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @ludovic111

Base: main ← Head: t3/fix-end-crystal-explosion


📝 Commits (4)

  • 8ffd595 fix: suppress secondary explosions from destroyed End crystals
  • a495fcf End crystal: one blast call for both paths
  • b983282 Merge remote-tracking branch 'origin/main' into cg14/pr1850
  • b4f1254 Merge remote-tracking branch 'origin/main' into cg14/pr1850

📊 Changes

2 files changed (+70 additions, -12 deletions)

View changed files

📝 crates/horizon-client/src/game/dragon.rs (+20 -12)
📝 tools/lan_e2e.py (+50 -0)

📄 Description

🤖 Opened by rdbt's AI agent (Codex), not by rdbt himself.

What and why

Fixes #1533. A crystal destroyed by TNT or another crystal's blast now disappears without creating a secondary explosion. Direct melee/projectile hits still create the power-6 blast. Crystal removal, invulnerability, dragon healing/target notifications, and respawn cancellation keep their existing paths.

Add lan_e2e.py --check crystal_blast: TNT reaches only the nearby crystal; punching the first of three crystals ten blocks apart destroys the second but leaves the third. An invulnerable crystal survives both cases. The check verifies both clients after host and guest actions.

Vanilla reference

Followed Minecraft Java 26.3 EndCrystal.hurtServer, inspected with tools/rea_vanilla.py: remove the crystal, create a blast only when the damage source lacks DamageTypeTags.IS_EXPLOSION, then call onDestroyedBy.

Validation

  • cargo build --profile fast -p horizon-client --bins passed.
  • lan_e2e.py --check crystal_blast passed with an in-frame host and with --server-thread (four cases each, both clients checked). Ran under Xvfb with fresh game data directories.
  • Full affected vanilla parity suite deferred to CI; the local self-check used --quick.

Self-check

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at e28b45376, 5 min 15 s)

Check Result
Scope ✅ 2 files, +77 −11
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 267 passed (31 s)
rustfmt ✅ (10 s)
clippy ✅ (1 s)
tests: horizon-client ✅ 1236 passed (3 min 51 s)
doc tests ✅ 0 passed (2 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 29 affected, to run in CI (--quick): arrow, block_removal, command_exec, composter, crafter, dedicated_server, dispenser, item_wire, locator_bar, mace, online_mode, sculk and 17 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Codex.


🔄 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/1850 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `t3/fix-end-crystal-explosion` --- ### 📝 Commits (4) - [`8ffd595`](https://github.com/horizon-rust/horizon/commit/8ffd595575358067bf29cf02a7166bffef56af9b) fix: suppress secondary explosions from destroyed End crystals - [`a495fcf`](https://github.com/horizon-rust/horizon/commit/a495fcf7a7af9ee0cc475bbccb810ae1c23d9755) End crystal: one blast call for both paths - [`b983282`](https://github.com/horizon-rust/horizon/commit/b98328224716a3aed1f267a9d94b5c044662f5e2) Merge remote-tracking branch 'origin/main' into cg14/pr1850 - [`b4f1254`](https://github.com/horizon-rust/horizon/commit/b4f12543caa5eee182968b39d5843f026e658a14) Merge remote-tracking branch 'origin/main' into cg14/pr1850 ### 📊 Changes **2 files changed** (+70 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dragon.rs` (+20 -12) 📝 `tools/lan_e2e.py` (+50 -0) </details> ### 📄 Description > 🤖 Opened by rdbt's AI agent (Codex), not by rdbt himself. ## What and why Fixes #1533. A crystal destroyed by TNT or another crystal's blast now disappears without creating a secondary explosion. Direct melee/projectile hits still create the power-6 blast. Crystal removal, invulnerability, dragon healing/target notifications, and respawn cancellation keep their existing paths. Add `lan_e2e.py --check crystal_blast`: TNT reaches only the nearby crystal; punching the first of three crystals ten blocks apart destroys the second but leaves the third. An invulnerable crystal survives both cases. The check verifies both clients after host and guest actions. ## Vanilla reference Followed Minecraft Java 26.3 `EndCrystal.hurtServer`, inspected with `tools/rea_vanilla.py`: remove the crystal, create a blast only when the damage source lacks `DamageTypeTags.IS_EXPLOSION`, then call `onDestroyedBy`. ## Validation - `cargo build --profile fast -p horizon-client --bins` passed. - `lan_e2e.py --check crystal_blast` passed with an in-frame host and with `--server-thread` (four cases each, both clients checked). Ran under Xvfb with fresh game data directories. - Full affected vanilla parity suite deferred to CI; the local self-check used `--quick`. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at e28b45376, 5 min 15 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +77 −11 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 267 passed (31 s) | | rustfmt | ✅ (10 s) | | clippy | ✅ (1 s) | | tests: horizon-client | ✅ 1236 passed (3 min 51 s) | | doc tests | ✅ 0 passed (2 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 29 affected, to run in CI (--quick): arrow, block_removal, command_exec, composter, crafter, dedicated_server, dispenser, item_wire, locator_bar, mace, online_mode, sculk and 17 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:12:32 +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#3817
No description provided.