3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-03 01:50:07 +01:00

Remove Y limits if a region has no world

0cb1eea55b311473c9468f608a0090b93cf5de91

Co-Authored-By: Octavia Togami <2093023+octylFractal@users.noreply.github.com>
Dieser Commit ist enthalten in:
N0tMyFaultOG 2020-11-13 22:10:43 +01:00
Ursprung 197389bd32
Commit cb088ff3e5

Datei anzeigen

@ -211,11 +211,11 @@ public abstract class AbstractRegion extends AbstractSet<BlockVector3> implement
// Sub-class utilities // Sub-class utilities
protected final int getWorldMinY() { protected final int getWorldMinY() {
return world == null ? 0 : world.getMinY(); return world == null ? Integer.MIN_VALUE : world.getMinY();
} }
protected final int getWorldMaxY() { protected final int getWorldMaxY() {
return world == null ? 255 : world.getMaxY(); return world == null ? Integer.MAX_VALUE : world.getMaxY();
} }
@Override @Override