Fix island level scan (Revert changes with chunk loading)

Commit: ff37711087
This commit is contained in:
ceze88 2022-08-24 16:24:00 +02:00
parent 52fd85642e
commit 72edb61405

View File

@ -114,14 +114,14 @@ public class ChunkLoader extends BukkitRunnable {
@Override
public void run() { // TODO New algorithm that start from the center of the island
for (int i = 0; i < chunkPerTick || paper; ++i) {
for (int i = 0; i < chunkPerTick || paper; i++) {
if (x <= maxX) {
if (z <= maxZ) {
if (!chunkForChunk) {
positions.add(new CachedChunk(world, x, z));
positions.add(new CachedChunk(world, x >> 4, z >> 4));
} else {
if (chunkTask != null) {
chunkTask.onChunkComplete(new CachedChunk(world, x, z));
chunkTask.onChunkComplete(new CachedChunk(world, x >> 4, z >> 4));
}
}