mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
EditSession: Fix hcyl height checks.
The height check was incorrect for certain height/position combinations, causing the cyl to be the wrong length. Closes #119
This commit is contained in:
parent
8ea980a303
commit
4aa9f7d35b
@ -1689,7 +1689,8 @@ public class EditSession {
|
||||
pos = pos.subtract(0, height, 0);
|
||||
}
|
||||
|
||||
if (pos.getBlockY() - height - 1 < 0) {
|
||||
// Only do this check if height is negative --Elizabeth
|
||||
if (height < 0 && pos.getBlockY() - height - 1 < 0) {
|
||||
height = pos.getBlockY() + 1;
|
||||
} else if (pos.getBlockY() + height - 1 > 127) {
|
||||
height = 127 - pos.getBlockY() + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user