Fixed EditSession.makeCylinder's mimimum height check

Dieser Commit ist enthalten in:
zml2008 2012-02-11 15:21:07 -08:00
Ursprung 437ad14880
Commit 9f1cc0674d
2 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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