From 3e9194b5ec8a834212777f24c1a471fd91783716 Mon Sep 17 00:00:00 2001 From: Felix Cravic Date: Sat, 4 Jul 2020 00:11:52 +0200 Subject: [PATCH] Fix ChunkPopulator --- .../java/net/minestom/server/instance/batch/ChunkBatch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/instance/batch/ChunkBatch.java b/src/main/java/net/minestom/server/instance/batch/ChunkBatch.java index 1d24e93fd..afa6ec397 100644 --- a/src/main/java/net/minestom/server/instance/batch/ChunkBatch.java +++ b/src/main/java/net/minestom/server/instance/batch/ChunkBatch.java @@ -63,7 +63,7 @@ public class ChunkBatch implements InstanceBatch { public void flushChunkGenerator(ChunkGenerator chunkGenerator, Consumer callback) { batchesPool.execute(() -> { final List 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);