From 10c9425826762a6eff94caca354c13105e7688ba Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Fri, 28 Jan 2022 20:27:29 +0000 Subject: [PATCH] Address comments --- .../com/plotsquared/bukkit/generator/BukkitPlotGenerator.java | 4 ++-- .../com/plotsquared/bukkit/queue/BukkitChunkCoordinator.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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();