From cb088ff3e5bb0245f813e4e2a2a765f64d31e4a1 Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Fri, 13 Nov 2020 22:10:43 +0100 Subject: [PATCH] Remove Y limits if a region has no world 0cb1eea55b311473c9468f608a0090b93cf5de91 Co-Authored-By: Octavia Togami <2093023+octylFractal@users.noreply.github.com> --- .../main/java/com/sk89q/worldedit/regions/AbstractRegion.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 6dea98712..ede52fe48 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 @@ -211,11 +211,11 @@ public abstract class AbstractRegion extends AbstractSet implement // Sub-class utilities protected final int getWorldMinY() { - return world == null ? 0 : world.getMinY(); + return world == null ? Integer.MIN_VALUE : world.getMinY(); } protected final int getWorldMaxY() { - return world == null ? 255 : world.getMaxY(); + return world == null ? Integer.MAX_VALUE : world.getMaxY(); } @Override