mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-05 10:20:42 +01:00
Fix ChunkPopulator
This commit is contained in:
parent
2fc29037fb
commit
3e9194b5ec
@ -63,7 +63,7 @@ public class ChunkBatch implements InstanceBatch {
|
||||
public void flushChunkGenerator(ChunkGenerator chunkGenerator, Consumer<Chunk> callback) {
|
||||
batchesPool.execute(() -> {
|
||||
final List<ChunkPopulator> populators = chunkGenerator.getPopulators();
|
||||
final boolean hasPopulator = populators != null && populators.isEmpty();
|
||||
final boolean hasPopulator = populators != null && !populators.isEmpty();
|
||||
|
||||
chunkGenerator.generateChunkData(this, chunk.getChunkX(), chunk.getChunkZ());
|
||||
singleThreadFlush(hasPopulator ? null : callback);
|
||||
|
Loading…
Reference in New Issue
Block a user