sk89q/worldedit — comment on commit 98216e2762f3da3e96578c45365b497871dd2f3d
File: src/main/java/com/sk89q/worldedit/regions/CuboidRegion.java line 192
By FearThe1337:

Cant this be changed to:
pos1 = pos1.clampY(0, world == null ? 127 : world.getMaxY());
As this is throwing nullpointer exceptions in craftbook.
Same goes for pos2 on the line below.