[PR #855] [MERGED] Preserve container contents when mining their blocks #2863

Closed
opened 2026-11-02 15:59:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/855
Author: @Online5277
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @ludovic111

Base: main ← Head: fix/loaded-container-drops


📝 Commits (1)

  • 8f8db80 Preserve non-heart block entities until normal removal

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/creaking.rs (+6 -0)

📄 Description

Mining called the creaking-heart break hook for every block. Its destructive take removed non-heart block entities before the type match failed, so normal removal could no longer spill their inventories. Check the type before taking it; retain the existing heart teardown and container removal paths.

Fixes #844.

Validation: a native survival regression reproduced a filled furnace returning only its block before the fix. After the fix, a furnace, blast furnace, smoker and chest each returned their block plus all 7 diamonds, 5 coal and 9 iron ingots. Creaking-heart removal also completed. Fast native build, client all-target Clippy with warnings denied, workspace formatting and public-tree checks passed.

Remaining: reporter testing with an actively smelting furnace and multiplayer. The heart check covered removal without a linked protector; it was not a full creaking behavior audit.


🔄 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/855 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/loaded-container-drops` --- ### 📝 Commits (1) - [`8f8db80`](https://github.com/horizon-rust/horizon/commit/8f8db8096b763d6433909ad558e9ba54afbb4241) Preserve non-heart block entities until normal removal ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creaking.rs` (+6 -0) </details> ### 📄 Description Mining called the creaking-heart break hook for every block. Its destructive `take` removed non-heart block entities before the type match failed, so normal removal could no longer spill their inventories. Check the type before taking it; retain the existing heart teardown and container removal paths. Fixes #844. Validation: a native survival regression reproduced a filled furnace returning only its block before the fix. After the fix, a furnace, blast furnace, smoker and chest each returned their block plus all 7 diamonds, 5 coal and 9 iron ingots. Creaking-heart removal also completed. Fast native build, client all-target Clippy with warnings denied, workspace formatting and public-tree checks passed. Remaining: reporter testing with an actively smelting furnace and multiplayer. The heart check covered removal without a linked protector; it was not a full creaking behavior audit. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:59:41 +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#2863
No description provided.