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:
parent
0d2c24f9d8
commit
e00cac47c1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user