Fixes #912
This commit is contained in:
parent
46634b1b26
commit
6f664c19bb
@ -200,7 +200,7 @@ public class CylinderRegion extends AbstractRegion implements FlatRegion {
|
||||
|
||||
@Override
|
||||
public int getMaximumY() {
|
||||
int worldMax = world.getMaxY() - 1;
|
||||
int worldMax = world != null ? world.getMaxY() - 1 : 255;
|
||||
if (maxY > worldMax) {
|
||||
return maxY = worldMax;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user