diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java index 88492d642..baaf95dfc 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java @@ -160,8 +160,8 @@ public class BukkitPlotGenerator extends ChunkGenerator @NonNull BiomeGrid biome ) { - int minY = BukkitWorld.getMinWorldHeight(world); - int maxY = BukkitWorld.getMaxWorldHeight(world); + int minY = BukkitWorld.getMinWorldHeight(world); + int maxY = BukkitWorld.getMaxWorldHeight(world); GenChunk result = new GenChunk(minY, maxY); if (this.getPlotGenerator() instanceof SingleWorldGenerator) { if (result.getChunkData() != null) { diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/queue/BukkitChunkCoordinator.java b/Bukkit/src/main/java/com/plotsquared/bukkit/queue/BukkitChunkCoordinator.java index e5dea62a8..fc1dca0da 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/queue/BukkitChunkCoordinator.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/queue/BukkitChunkCoordinator.java @@ -150,8 +150,8 @@ public final class BukkitChunkCoordinator extends ChunkCoordinator { Chunk chunk = this.availableChunks.poll(); if (chunk == null) { - if (this.availableChunks.size() == 0) { - if (this.requestedChunks.size() == 0) { + if (this.availableChunks.isEmpty()) { + if (this.requestedChunks.isEmpty()) { finish(); } else { requestBatch();