|
|
@ -34,15 +34,6 @@ class GenerationTaskSpigot(
|
|
|
|
if (borderReachedCheck()) return
|
|
|
|
if (borderReachedCheck()) return
|
|
|
|
|
|
|
|
|
|
|
|
var chunk = nextChunkCoordinates
|
|
|
|
var chunk = nextChunkCoordinates
|
|
|
|
for (i in 0 until chunkSkips) {
|
|
|
|
|
|
|
|
if (world.isChunkGenerated(chunk.x, chunk.z)) {
|
|
|
|
|
|
|
|
chunk = nextChunkCoordinates
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!world.isChunkGenerated(chunk.x, chunk.z)) {
|
|
|
|
|
|
|
|
for (i in 0 until chunksPerStep) {
|
|
|
|
for (i in 0 until chunksPerStep) {
|
|
|
|
if (borderReached()) break
|
|
|
|
if (borderReached()) break
|
|
|
|
val chunkInstance = world.getChunkAt(chunk.x, chunk.z)
|
|
|
|
val chunkInstance = world.getChunkAt(chunk.x, chunk.z)
|
|
|
@ -53,7 +44,7 @@ class GenerationTaskSpigot(
|
|
|
|
val chunkInstance = world.getChunkAt(chunk.x, chunk.z)
|
|
|
|
val chunkInstance = world.getChunkAt(chunk.x, chunk.z)
|
|
|
|
chunkInstance.load(true)
|
|
|
|
chunkInstance.load(true)
|
|
|
|
loadedChunks.add(chunkInstance)
|
|
|
|
loadedChunks.add(chunkInstance)
|
|
|
|
}
|
|
|
|
|
|
|
|
lastChunkCoords = chunk
|
|
|
|
lastChunkCoords = chunk
|
|
|
|
count = shape.count
|
|
|
|
count = shape.count
|
|
|
|
}
|
|
|
|
}
|
|
|
|