Does not save chunks on unloading.

This commit is contained in:
tastybento 2019-11-09 20:34:12 -08:00
parent 91a69adae1
commit 55f6a124bf

View File

@ -104,9 +104,8 @@ public class CalcIslandLevel {
Pair<Integer, Integer> pair = it.next();
for (World worldToScan : worlds) {
if (!worldToScan.isChunkLoaded(pair.x, pair.z)) {
worldToScan.loadChunk(pair.x, pair.z);
chunkSnapshot.add(worldToScan.getChunkAt(pair.x, pair.z).getChunkSnapshot());
worldToScan.unloadChunk(pair.x, pair.z);
worldToScan.unloadChunk(pair.x, pair.z, false);
} else {
chunkSnapshot.add(worldToScan.getChunkAt(pair.x, pair.z).getChunkSnapshot());
}