Remove Y limits if a region has no world

This commit is contained in:
Octavia Togami 2020-09-02 13:52:53 -07:00
parent 84fa2bbbc6
commit 0cb1eea55b

View File

@ -207,11 +207,11 @@ public Set<BlockVector3> getChunkCubes() {
// 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();
}
}