Clamped Y for //expand and //contract operations.

This commit is contained in:
sk89q
2010-10-25 01:07:10 -07:00
parent 194e162638
commit cca5f157f4
2 changed files with 17 additions and 0 deletions

View File

@ -168,6 +168,9 @@ public class CuboidRegion implements Region {
pos2 = pos2.add(new Vector(0, 0, change.getZ()));
}
}
pos1 = pos1.clampY(0, 127);
pos2 = pos2.clampY(0, 127);
}
/**
@ -217,6 +220,9 @@ public class CuboidRegion implements Region {
pos2 = pos2.add(new Vector(0, 0, change.getZ()));
}
}
pos1 = pos1.clampY(0, 127);
pos2 = pos2.clampY(0, 127);
}
/**