This commit is contained in:
Jesse Boyd 2018-02-07 13:16:58 +11:00
parent 46634b1b26
commit 6f664c19bb
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -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;
}