Skip to content

Commit 5c5077a

Browse files
committed
Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop
2 parents 9ee5bcb + c235abb commit 5c5077a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/world/bentobox/bentobox/nms/SimpleWorldRegenerator.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ public void run() {
6666
}
6767
final int x = chunkX;
6868
final int z = chunkZ;
69-
newTasks.add(regenerateChunk(gm, di, world, x, z));
69+
70+
// Only process non-generated chunks
71+
if (world.isChunkGenerated(x, z)) {
72+
newTasks.add(regenerateChunk(gm, di, world, x, z));
73+
}
74+
7075
chunkZ++;
7176
if (chunkZ > di.getMaxZChunk()) {
7277
chunkZ = di.getMinZChunk();

0 commit comments

Comments
 (0)