combine nested
This commit is contained in:
parent
2c3dc5d6b1
commit
af11e64cec
@ -419,15 +419,13 @@ public class BuilderProcess extends BaritoneProcessHelper implements IBuilderPro
|
|||||||
for (int y = 0; y < schematic.heightY(); y++) {
|
for (int y = 0; y < schematic.heightY(); y++) {
|
||||||
for (int z = 0; z < schematic.lengthZ(); z++) {
|
for (int z = 0; z < schematic.lengthZ(); z++) {
|
||||||
for (int x = 0; x < schematic.widthX(); x++) {
|
for (int x = 0; x < schematic.widthX(); x++) {
|
||||||
if (schematic.inSchematic(x, y, z)) {
|
if (schematic.inSchematic(x, y, z) && !valid(bcc.bsi.get0(x + origin.getX(), y + origin.getY(), z + origin.getZ()), schematic.desiredState(x, y, z))) {
|
||||||
if (!valid(bcc.bsi.get0(x + origin.getX(), y + origin.getY(), z + origin.getZ()), schematic.desiredState(x, y, z))) {
|
|
||||||
incorrectPositions.add(new BetterBlockPos(x + origin.getX(), y + origin.getY(), z + origin.getZ()));
|
incorrectPositions.add(new BetterBlockPos(x + origin.getX(), y + origin.getY(), z + origin.getZ()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private Goal assemble(BuilderCalculationContext bcc, List<IBlockState> approxPlacable) {
|
private Goal assemble(BuilderCalculationContext bcc, List<IBlockState> approxPlacable) {
|
||||||
List<BetterBlockPos> placable = incorrectPositions.stream().filter(pos -> bcc.bsi.get0(pos).getBlock() == Blocks.AIR && approxPlacable.contains(bcc.getSchematic(pos.x, pos.y, pos.z))).collect(Collectors.toList());
|
List<BetterBlockPos> placable = incorrectPositions.stream().filter(pos -> bcc.bsi.get0(pos).getBlock() == Blocks.AIR && approxPlacable.contains(bcc.getSchematic(pos.x, pos.y, pos.z))).collect(Collectors.toList());
|
||||||
|
Loading…
Reference in New Issue
Block a user