Fixed EditSession.makeCylinder's mimimum height check

This commit is contained in:
zml2008 2012-02-11 15:21:07 -08:00
parent 437ad14880
commit 9f1cc0674d
2 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,8 @@
- Added bPermissions support
- Update for new events system
- Fixed /scriptname.js and no-double-slash settings not working
- Corrected usage message for maze.js
- Corrected usage message for maze.js
- Fixed mimimum height check for cylinder generation
5.1.1:
- Fixed some compatibility issues with SpoutPlugin

View File

@ -2077,8 +2077,8 @@ public class EditSession {
pos = pos.subtract(0, height, 0);
}
if (pos.getBlockY() - height - 1 < 0) {
height = pos.getBlockY() + 1;
if (pos.getBlockY() < 0) {
pos = pos.setY(0);
} else if (pos.getBlockY() + height - 1 > world.getMaxY()) {
height = world.getMaxY() - pos.getBlockY() + 1;
}