[PR #6046] [MERGED] Lift primed TNT in soul sand bubble columns #6625

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6046
Author: @doodlyyousuf
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

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


📝 Commits (2)

  • a2ddc9f Lift primed TNT in soul sand bubble columns
  • f6dc590 Lift primed TNT in soul sand bubble columns

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/tnt.rs (+80 -1)

📄 Description

🤖 Opened by doodlyyousuf's AI agent (OhMyAgent, grok-4.6)

Closes #6008

What was wrong

PrimedTnt.tick (crates/horizon-client/src/game/tnt.rs) moved the entity, zeroed the velocity it lost to a collision, applied drag and then only ran the fluid-immersion update. It never ran Entity.applyEffectsFromBlocks, so BubbleColumnBlock.entityInside never reached a primed TNT: dropped into a soul sand bubble column it just fell.

Fix

The tick now asks motion::bubble_column_push about the columns its box touches, right after the move and before the .98 drag, which is the order Entity.move → pplyEffectsFromBlocks → drag gives. That is the same call items, mobs and armor stands already make, so the column now pushes the TNT up (Entity.handleOnInsideBubbleColumn, and harder at the surface via handleOnAboveBubbleColumn), and a magma column drags it down.

Vanilla references: PrimedTnt.tick, Entity.applyEffectsFromBlocks, BubbleColumnBlock.entityInside, Entity.handleOnInsideBubbleColumn, Entity.handleOnAboveBubbleColumn.

Test

_soul_sand_bubble_column_lifts_primed_tnt builds a soul-sand-fed column in a generated test scene, ticks a primed TNT inside it and asserts it rises; then replaces the column with plain water and asserts the same TNT sinks, so the lift cannot come from anything but the column. It returns early when the prepared vanilla data is not present, like its neighbours in the module.

Verification

  • cargo test -p horizon-client --bin horizon-client -- game::tnt: 3 passed (the new test and the two neighbours).
  • cargo test -p horizon-world --lib: 282 passed.

ustfmt --edition 2024 --check: clean.

The new test needs the prepared 26.3 data at .local/horizon-client/26.3 (horizon-prepare), which this machine does not have, so it returned early here and CI is the first run that actually executes its body.


🔄 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/6046 **Author:** [@doodlyyousuf](https://github.com/doodlyyousuf) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/tnt-bubble-column` --- ### 📝 Commits (2) - [`a2ddc9f`](https://github.com/horizon-rust/horizon/commit/a2ddc9f68159afb92624de841097c03eb73e991d) Lift primed TNT in soul sand bubble columns - [`f6dc590`](https://github.com/horizon-rust/horizon/commit/f6dc590d3efa3579fb255dbbca928d6a019c5e84) Lift primed TNT in soul sand bubble columns ### 📊 Changes **1 file changed** (+80 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/tnt.rs` (+80 -1) </details> ### 📄 Description > 🤖 Opened by doodlyyousuf's AI agent (OhMyAgent, grok-4.6) Closes #6008 ## What was wrong PrimedTnt.tick (crates/horizon-client/src/game/tnt.rs) moved the entity, zeroed the velocity it lost to a collision, applied drag and then only ran the fluid-immersion update. It never ran Entity.applyEffectsFromBlocks, so BubbleColumnBlock.entityInside never reached a primed TNT: dropped into a soul sand bubble column it just fell. ## Fix The tick now asks motion::bubble_column_push about the columns its box touches, right after the move and before the .98 drag, which is the order Entity.move → pplyEffectsFromBlocks → drag gives. That is the same call items, mobs and armor stands already make, so the column now pushes the TNT up (Entity.handleOnInsideBubbleColumn, and harder at the surface via handleOnAboveBubbleColumn), and a magma column drags it down. Vanilla references: PrimedTnt.tick, Entity.applyEffectsFromBlocks, BubbleColumnBlock.entityInside, Entity.handleOnInsideBubbleColumn, Entity.handleOnAboveBubbleColumn. ## Test _soul_sand_bubble_column_lifts_primed_tnt builds a soul-sand-fed column in a generated test scene, ticks a primed TNT inside it and asserts it rises; then replaces the column with plain water and asserts the same TNT sinks, so the lift cannot come from anything but the column. It returns early when the prepared vanilla data is not present, like its neighbours in the module. ## Verification - cargo test -p horizon-client --bin horizon-client -- game::tnt: 3 passed (the new test and the two neighbours). - cargo test -p horizon-world --lib: 282 passed. - ustfmt --edition 2024 --check: clean. The new test needs the prepared 26.3 data at .local/horizon-client/26.3 (horizon-prepare), which this machine does not have, so it returned early here and CI is the first run that actually executes its body. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:23:57 +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#6625
No description provided.