Fixed a NullPointerException in conjunction with CraftBook.

Thanks FearThe1337.
This commit is contained in:
TomyLobo 2011-12-14 10:51:02 +01:00
parent 05404b005d
commit caeab76abb

View File

@ -189,8 +189,8 @@ public class CuboidRegion implements Region {
}
}
pos1 = pos1.clampY(0, world.getMaxY());
pos2 = pos2.clampY(0, world.getMaxY());
pos1 = pos1.clampY(0, world == null ? 127 : world.getMaxY());
pos2 = pos2.clampY(0, world == null ? 127 : world.getMaxY());
}
/**