mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-26 04:35:56 +01:00
Does not save chunks on unloading.
This commit is contained in:
parent
91a69adae1
commit
55f6a124bf
@ -104,9 +104,8 @@ public class CalcIslandLevel {
|
|||||||
Pair<Integer, Integer> pair = it.next();
|
Pair<Integer, Integer> pair = it.next();
|
||||||
for (World worldToScan : worlds) {
|
for (World worldToScan : worlds) {
|
||||||
if (!worldToScan.isChunkLoaded(pair.x, pair.z)) {
|
if (!worldToScan.isChunkLoaded(pair.x, pair.z)) {
|
||||||
worldToScan.loadChunk(pair.x, pair.z);
|
|
||||||
chunkSnapshot.add(worldToScan.getChunkAt(pair.x, pair.z).getChunkSnapshot());
|
chunkSnapshot.add(worldToScan.getChunkAt(pair.x, pair.z).getChunkSnapshot());
|
||||||
worldToScan.unloadChunk(pair.x, pair.z);
|
worldToScan.unloadChunk(pair.x, pair.z, false);
|
||||||
} else {
|
} else {
|
||||||
chunkSnapshot.add(worldToScan.getChunkAt(pair.x, pair.z).getChunkSnapshot());
|
chunkSnapshot.add(worldToScan.getChunkAt(pair.x, pair.z).getChunkSnapshot());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user