mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fixed EditSession.makeCylinder's mimimum height check
This commit is contained in:
parent
437ad14880
commit
9f1cc0674d
@ -13,6 +13,7 @@
|
|||||||
- Update for new events system
|
- Update for new events system
|
||||||
- Fixed /scriptname.js and no-double-slash settings not working
|
- 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:
|
5.1.1:
|
||||||
- Fixed some compatibility issues with SpoutPlugin
|
- Fixed some compatibility issues with SpoutPlugin
|
||||||
|
@ -2077,8 +2077,8 @@ public class EditSession {
|
|||||||
pos = pos.subtract(0, height, 0);
|
pos = pos.subtract(0, height, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pos.getBlockY() - height - 1 < 0) {
|
if (pos.getBlockY() < 0) {
|
||||||
height = pos.getBlockY() + 1;
|
pos = pos.setY(0);
|
||||||
} else if (pos.getBlockY() + height - 1 > world.getMaxY()) {
|
} else if (pos.getBlockY() + height - 1 > world.getMaxY()) {
|
||||||
height = world.getMaxY() - pos.getBlockY() + 1;
|
height = world.getMaxY() - pos.getBlockY() + 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user