Fixed a NullPointerException in conjunction with CraftBook.

Thanks FearThe1337.
Dieser Commit ist enthalten in:
TomyLobo 2011-12-14 10:51:02 +01:00
Ursprung 05404b005d
Commit caeab76abb

Datei anzeigen

@ -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());
}
/**