mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-29 23:17:59 +02:00
ChunkPopulator fix by clearing data list
This commit is contained in:
parent
e7c26ab45e
commit
7fd8362d6c
@ -68,6 +68,8 @@ public class ChunkBatch implements InstanceBatch {
|
||||
chunkGenerator.generateChunkData(this, chunk.getChunkX(), chunk.getChunkZ());
|
||||
singleThreadFlush(hasPopulator ? null : callback);
|
||||
|
||||
clearData(); // So the populators won't place those blocks again
|
||||
|
||||
if (populators != null && !populators.isEmpty()) {
|
||||
Iterator<ChunkPopulator> populatorIterator = populators.iterator();
|
||||
while (populatorIterator.hasNext()) {
|
||||
@ -76,6 +78,7 @@ public class ChunkBatch implements InstanceBatch {
|
||||
}
|
||||
singleThreadFlush(callback);
|
||||
}
|
||||
clearData(); // Clear populators blocks
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user