mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-22 10:36:08 +01:00
Added forced chunk loading back in.
This commit is contained in:
parent
55f6a124bf
commit
4e33df1927
@ -104,6 +104,7 @@ 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, false);
|
worldToScan.unloadChunk(pair.x, pair.z, false);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user