fix selection splitting in Y direction, the second
This commit is contained in:
parent
18cdab89b6
commit
3faa5acec7
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ public class BlockUtils {
|
||||||
zSideLength = sectionSideLength;
|
zSideLength = sectionSideLength;
|
||||||
for (int i = 0; i < selections.length; i++) {
|
for (int i = 0; i < selections.length; i++) {
|
||||||
BlockPos pos1 = selection.pos1.add(xSideLength * i, 0, zSideLength * i);
|
BlockPos pos1 = selection.pos1.add(xSideLength * i, 0, zSideLength * i);
|
||||||
BlockPos pos2 = selection.pos1.add(Math.max(Math.min(xSideLength * (i + 1), selSideLength) - 1, 0), selection.pos2.getY(), Math.min(Math.max(zSideLength * (i + 1) - 1, 0), selSideLength - 1));
|
BlockPos pos2 = selection.pos1.add(Math.max(Math.min(xSideLength * (i + 1), selSideLength) - 1, 0), size.getY(), Math.min(Math.max(zSideLength * (i + 1) - 1, 0), selSideLength - 1));
|
||||||
selections[i] = new Selection(pos1, pos2);
|
selections[i] = new Selection(pos1, pos2);
|
||||||
}
|
}
|
||||||
return selections;
|
return selections;
|
||||||
|
|
Loading…
Add table
Reference in a new issue