Preserve non-heart block entities until normal removal

This commit is contained in:
Cosmic
2026-10-18 06:26:49 -04:00
parent e508a5ce1d
commit 8f8db8096b
@@ -220,6 +220,12 @@ impl Game<'_> {
/// death and a natural heart drops experience.
pub(super) fn creaking_heart_broken(&mut self, pos: [i32; 3]) {
let key = (pos[0], pos[1], pos[2]);
if !matches!(
self.world.block_entities.get(&key),
Some(BlockEntity::CreakingHeart(_))
) {
return;
}
let Some(BlockEntity::CreakingHeart(mut heart)) = self.world.block_entities.take(&key)
else {
return;