AltControl implementation #7

Merged
TudbuT merged 19 commits from altcontrol into main 2024-05-31 23:58:12 +02:00
Showing only changes of commit 3faa5acec7 - Show all commits

View file

@ -20,7 +20,7 @@ public class BlockUtils {
zSideLength = sectionSideLength;
for (int i = 0; i < selections.length; 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);
}
return selections;