diff --git a/Core/src/main/java/com/plotsquared/core/generator/HybridUtils.java b/Core/src/main/java/com/plotsquared/core/generator/HybridUtils.java index ba3f4509e..ce92136f6 100644 --- a/Core/src/main/java/com/plotsquared/core/generator/HybridUtils.java +++ b/Core/src/main/java/com/plotsquared/core/generator/HybridUtils.java @@ -87,6 +87,8 @@ public class HybridUtils { public static HybridUtils manager; public static Set regions; public static int height; + // Use ordered for reasonable chunk loading order to reduce paper unloading neighbour chunks and then us attempting to load + // them again, causing errors public static Set chunks = new LinkedHashSet<>(); public static PlotArea area; public static boolean UPDATE = false; diff --git a/Core/src/main/java/com/plotsquared/core/plot/PlotCluster.java b/Core/src/main/java/com/plotsquared/core/plot/PlotCluster.java index 294ebc715..b09117a24 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotCluster.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotCluster.java @@ -96,6 +96,8 @@ public class PlotCluster { /** * Returns a region of PlotIDs + * + * @deprecated - returns region of IDs, not of actual blocks. */ @Deprecated public CuboidRegion getRegion() { diff --git a/Core/src/main/java/com/plotsquared/core/util/WorldUtil.java b/Core/src/main/java/com/plotsquared/core/util/WorldUtil.java index a26f43793..9fa8cddf0 100644 --- a/Core/src/main/java/com/plotsquared/core/util/WorldUtil.java +++ b/Core/src/main/java/com/plotsquared/core/util/WorldUtil.java @@ -239,7 +239,7 @@ public abstract class WorldUtil { */ public void setBiomes(@NonNull String worldName, @NonNull CuboidRegion region, @NonNull BiomeType biome) { final World world = getWeWorld(worldName); - region.iterator().forEachRemaining(bv -> world.setBiome(bv, biome)); + region.forEach(bv -> world.setBiome(bv, biome)); } /**