mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-07 17:07:36 +01:00
Disable chunk generation on rengeneration (#2114)
The SimpleWorldRegenerator generated world new chunks that were not generated before. It is not necessary, as regeneration should happen only on used chunks.
This commit is contained in:
parent
b4737f104c
commit
c235abbfa6
@ -66,7 +66,12 @@ public abstract class SimpleWorldRegenerator implements WorldRegenerator {
|
||||
}
|
||||
final int x = chunkX;
|
||||
final int z = chunkZ;
|
||||
newTasks.add(regenerateChunk(gm, di, world, x, z));
|
||||
|
||||
// Only process non-generated chunks
|
||||
if (world.isChunkGenerated(x, z)) {
|
||||
newTasks.add(regenerateChunk(gm, di, world, x, z));
|
||||
}
|
||||
|
||||
chunkZ++;
|
||||
if (chunkZ > di.getMaxZChunk()) {
|
||||
chunkZ = di.getMinZChunk();
|
||||
|
Loading…
Reference in New Issue
Block a user