[PR #6634] [MERGED] Primed TNT at the top of a bubble column sends its surface particles #7001

Closed
opened 2026-11-03 06:31:29 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6634
Author: @Akirabane
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/tnt-bubble-particles


📝 Commits (2)

  • f579f44 Primed TNT at the top of a bubble column sends its surface particles
  • 194163c Merge origin/main into fix/tnt-bubble-particles

📊 Changes

1 file changed (+78 additions, -5 deletions)

View changed files

📝 crates/horizon-client/src/game/tnt.rs (+78 -5)

📄 Description

🤖 Opened by both Akirabane's AI agent (Claude Code), and Akirabane Himself after his review.

Fixes #6626

What was wrong

BubbleColumnBlock.entityInside calls Entity.onAboveBubbleColumn for every entity at the surface of a column (nothing solid and no fluid above it), and that ends in Entity.sendBubbleColumnParticles: two SPLASH and two BUBBLE particles over the column block, sent by the server to the players around (read with javap on the 26.3 server jar; PrimedTnt overrides neither method). #6474 did it for mobs and dropped items. Primed TNT was already pushed by the column (#6046) but showed nothing at its surface.

What changed

  • game/tnt.rs: PrimedTnt::tick uses motion::bubble_column_push_over (added in #6474) and returns the column blocks the TNT is at the top of; tick_tnt has Game::bubble_column_particles draw them and send them to the LAN guests.

Ender pearls and armor stands still show nothing at the top of a column; they are the same change in their own files and stay for their own pull requests.

How it was checked

Unit test primed_tnt_reports_the_surface_of_a_bubble_column: over a soul sand column with air above it, the TNT reports only the top block, (20, 8, 20); with water above the top block it reports nothing.

In the game (horizon-ctl launch --offscreen, creative world): a glass shaft with a soul sand column and a primed TNT (/summon tnt with a long fuse) inside, horizon-ctl status particle counters after 11 s, on a build of main from tonight (which has #6474) and on this branch:

Build splash bubble
main none none
this branch 188 188

Self-check

tools/pr_ready.py --quick --base origin/main:

Check Result
Scope 1 file, +78 −5
Cargo.lock unchanged
rustfmt ✅
clippy ✅
tests: horizon-client 589 passed, 2 failed: native_hooks::native_breathing_stays_hookable and native_loot_kinds_stay_hookable read a source file with LF line endings; they fail the same way on my Windows checkout without this change
Python tests 2 errors: test_port_ledger (a global tests package shadows the repo's on my machine) and test_world_input_capture, neither touched here
Parity not run (--quick): the CI parity job picks the affected harnesses

Label: a fix, no feature label.


🔄 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/6634 **Author:** [@Akirabane](https://github.com/Akirabane) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/tnt-bubble-particles` --- ### 📝 Commits (2) - [`f579f44`](https://github.com/horizon-rust/horizon/commit/f579f440f434d7c1708a2968d3d992adb76f636f) Primed TNT at the top of a bubble column sends its surface particles - [`194163c`](https://github.com/horizon-rust/horizon/commit/194163c33382ffe8f4f089996a1b02e90a99cca0) Merge origin/main into fix/tnt-bubble-particles ### 📊 Changes **1 file changed** (+78 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/tnt.rs` (+78 -5) </details> ### 📄 Description > 🤖 Opened by both Akirabane's AI agent (Claude Code), and Akirabane Himself after his review. Fixes #6626 ## What was wrong `BubbleColumnBlock.entityInside` calls `Entity.onAboveBubbleColumn` for every entity at the surface of a column (nothing solid and no fluid above it), and that ends in `Entity.sendBubbleColumnParticles`: two `SPLASH` and two `BUBBLE` particles over the column block, sent by the server to the players around (read with `javap` on the 26.3 server jar; `PrimedTnt` overrides neither method). #6474 did it for mobs and dropped items. Primed TNT was already pushed by the column (#6046) but showed nothing at its surface. ## What changed - `game/tnt.rs`: `PrimedTnt::tick` uses `motion::bubble_column_push_over` (added in #6474) and returns the column blocks the TNT is at the top of; `tick_tnt` has `Game::bubble_column_particles` draw them and send them to the LAN guests. Ender pearls and armor stands still show nothing at the top of a column; they are the same change in their own files and stay for their own pull requests. ## How it was checked Unit test `primed_tnt_reports_the_surface_of_a_bubble_column`: over a soul sand column with air above it, the TNT reports only the top block, `(20, 8, 20)`; with water above the top block it reports nothing. In the game (`horizon-ctl launch --offscreen`, creative world): a glass shaft with a soul sand column and a primed TNT (`/summon tnt` with a long fuse) inside, `horizon-ctl status` particle counters after 11 s, on a build of main from tonight (which has #6474) and on this branch: | Build | `splash` | `bubble` | | --- | --- | --- | | main | none | none | | this branch | 188 | 188 | ## Self-check `tools/pr_ready.py --quick --base origin/main`: | Check | Result | | --- | --- | | Scope | 1 file, +78 −5 | | Cargo.lock | unchanged | | rustfmt | ✅ | | clippy | ✅ | | tests: horizon-client | 589 passed, 2 failed: `native_hooks::native_breathing_stays_hookable` and `native_loot_kinds_stay_hookable` read a source file with LF line endings; they fail the same way on my Windows checkout without this change | | Python tests | 2 errors: `test_port_ledger` (a global `tests` package shadows the repo's on my machine) and `test_world_input_capture`, neither touched here | | Parity | not run (`--quick`): the CI parity job picks the affected harnesses | Label: a fix, no `feature` label. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:31:29 +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#7001
No description provided.