mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-20 15:29:33 +00:00
Fix merging and the block density cache
This commit is contained in:
@@ -88,6 +88,11 @@ public abstract class SpecialisedExplosion<T extends Entity> extends ServerExplo
|
|||||||
}
|
}
|
||||||
|
|
||||||
java.util.Arrays.fill(this.directMappedBlockCache, null);
|
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() {
|
protected final void recalculateExplosionPosition() {
|
||||||
|
|||||||
Reference in New Issue
Block a user