From bf28ab47b8b70656adc68f2782ee069ecf0893d9 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sun, 23 Oct 2022 20:22:43 +0100 Subject: [PATCH] fix: bring default min/max y in line with upstream in AbstractRegion (#1992) - Fixes #1987 --- .../sk89q/worldedit/regions/AbstractRegion.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/AbstractRegion.java b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/AbstractRegion.java index 4728271c8..85979b217 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/AbstractRegion.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/AbstractRegion.java @@ -223,23 +223,11 @@ public abstract class AbstractRegion extends AbstractSet implement // Sub-class utilities protected final int getWorldMinY() { - //FAWE start > Server default based on version - return world == null ? WorldEdit - .getInstance() - .getPlatformManager() - .queryCapability(Capability.WORLD_EDITING) - .versionMinY() : world.getMinY(); - //FAWE end + return world == null ? Integer.MIN_VALUE : world.getMinY(); } protected final int getWorldMaxY() { - //FAWE start > Server default based on version - return world == null ? WorldEdit - .getInstance() - .getPlatformManager() - .queryCapability(Capability.WORLD_EDITING) - .versionMaxY() : world.getMaxY(); - //FAWE end + return world == null ? Integer.MAX_VALUE : world.getMaxY(); } //FAWE start