1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Improve performance for clearAllBlockInfoAtChunk

This commit is contained in:
Daniel Walsh 2023-07-11 01:54:02 +01:00
parent 0d2c24f9d8
commit e00cac47c1

View File

@ -621,8 +621,8 @@ public class BlockStorage {
return;
}
Map<Location, Boolean> toClear = new HashMap<>();
Map<Location, Config> storage = blockStorage.getRawStorage();
for (Location location : storage.keySet()) {
// Unsafe: get raw storage for this world
for (Location location : blockStorage.storage.keySet()) {
if (location.getBlockX() >> 4 == chunkX && location.getBlockZ() >> 4 == chunkZ) {
toClear.put(location, destroy);
}