9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2025-12-28 11:19:08 +00:00

fix issue with merging and the block density cache

This commit is contained in:
Samsuik
2025-10-31 18:51:12 +00:00
parent 0f38ac680f
commit fd6d1176ec

View File

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