diff --git a/bukkit-helper-118-2/src/main/java/org/dynmap/bukkit/helper/v118_2/AsyncChunkProvider118_2.java b/bukkit-helper-118-2/src/main/java/org/dynmap/bukkit/helper/v118_2/AsyncChunkProvider118_2.java index f043d870..745527e6 100644 --- a/bukkit-helper-118-2/src/main/java/org/dynmap/bukkit/helper/v118_2/AsyncChunkProvider118_2.java +++ b/bukkit-helper-118-2/src/main/java/org/dynmap/bukkit/helper/v118_2/AsyncChunkProvider118_2.java @@ -86,7 +86,7 @@ public class AsyncChunkProvider118_2 { public synchronized Supplier getLoadedChunk(CraftWorld world, int x, int z) { if (!world.isChunkLoaded(x, z)) return () -> null; Chunk c = world.getHandle().getChunkIfLoaded(x, z); //already safe async on vanilla - if ((c == null) || c.o) return () -> null; // c.loaded + if ((c == null) || !c.o) return () -> null; // c.loaded if (currTick != MinecraftServer.currentTick) { currTick = MinecraftServer.currentTick; currChunks = 0; diff --git a/bukkit-helper-119/src/main/java/org/dynmap/bukkit/helper/v119/AsyncChunkProvider119.java b/bukkit-helper-119/src/main/java/org/dynmap/bukkit/helper/v119/AsyncChunkProvider119.java index 10ee620a..ac93ee97 100644 --- a/bukkit-helper-119/src/main/java/org/dynmap/bukkit/helper/v119/AsyncChunkProvider119.java +++ b/bukkit-helper-119/src/main/java/org/dynmap/bukkit/helper/v119/AsyncChunkProvider119.java @@ -85,7 +85,7 @@ public class AsyncChunkProvider119 { public synchronized Supplier getLoadedChunk(CraftWorld world, int x, int z) { if (!world.isChunkLoaded(x, z)) return () -> null; Chunk c = world.getHandle().getChunkIfLoaded(x, z); //already safe async on vanilla - if ((c == null) || c.o) return () -> null; // c.loaded + if ((c == null) || !c.o) return () -> null; // c.loaded if (currTick != MinecraftServer.currentTick) { currTick = MinecraftServer.currentTick; currChunks = 0;