9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2025-12-19 14:59:30 +00:00

Fix merging and the block density cache

This commit is contained in:
Samsuik
2025-10-31 18:51:12 +00:00
parent 1bcc3e33f3
commit 843a51aed2

View File

@@ -88,6 +88,11 @@ public abstract class SpecialisedExplosion<T extends Entity> extends ServerExplo
}
java.util.Arrays.fill(this.directMappedBlockCache, null);
// Invalidate block density cache
if (destroyedBlocks && !this.level().paperConfig().environment.optimizeExplosions) {
this.level().densityCache.invalidate();
}
}
protected final void recalculateExplosionPosition() {