Address comments

This commit is contained in:
dordsor21 2022-02-23 17:30:29 +00:00 committed by Jordan
parent db963ffc61
commit 5c0e538231
3 changed files with 5 additions and 1 deletions

View File

@ -87,6 +87,8 @@ public class HybridUtils {
public static HybridUtils manager; public static HybridUtils manager;
public static Set<BlockVector2> regions; public static Set<BlockVector2> regions;
public static int height; 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<BlockVector2> chunks = new LinkedHashSet<>(); public static Set<BlockVector2> chunks = new LinkedHashSet<>();
public static PlotArea area; public static PlotArea area;
public static boolean UPDATE = false; public static boolean UPDATE = false;

View File

@ -96,6 +96,8 @@ public class PlotCluster {
/** /**
* Returns a region of PlotIDs * Returns a region of PlotIDs
*
* @deprecated - returns region of IDs, not of actual blocks.
*/ */
@Deprecated @Deprecated
public CuboidRegion getRegion() { public CuboidRegion getRegion() {

View File

@ -239,7 +239,7 @@ public abstract class WorldUtil {
*/ */
public void setBiomes(@NonNull String worldName, @NonNull CuboidRegion region, @NonNull BiomeType biome) { public void setBiomes(@NonNull String worldName, @NonNull CuboidRegion region, @NonNull BiomeType biome) {
final World world = getWeWorld(worldName); final World world = getWeWorld(worldName);
region.iterator().forEachRemaining(bv -> world.setBiome(bv, biome)); region.forEach(bv -> world.setBiome(bv, biome));
} }
/** /**