Introduce startAtLayer to start building at a specific layer in the schematic. To be used only with buildWithLayers true.
This commit is contained in:
parent
a25afd5c13
commit
7081cf7172
@ -752,6 +752,12 @@ public final class Settings {
|
|||||||
*/
|
*/
|
||||||
public final Setting<Boolean> layerOrder = new Setting<>(false);
|
public final Setting<Boolean> layerOrder = new Setting<>(false);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Start building the schematic at a specific layer.
|
||||||
|
* Can help on larger builds when schematic wants to break things its already built
|
||||||
|
*/
|
||||||
|
public final Setting<Integer> startAtLayer = new Setting<>(1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* How far to move before repeating the build. 0 to disable repeating on a certain axis, 0,0,0 to disable entirely
|
* How far to move before repeating the build. 0 to disable repeating on a certain axis, 0,0,0 to disable entirely
|
||||||
*/
|
*/
|
||||||
|
@ -97,7 +97,7 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
|
|||||||
}
|
}
|
||||||
this.origin = new Vec3i(x, y, z);
|
this.origin = new Vec3i(x, y, z);
|
||||||
this.paused = false;
|
this.paused = false;
|
||||||
this.layer = 0;
|
this.layer = Baritone.settings().startAtLayer.value;
|
||||||
this.numRepeats = 0;
|
this.numRepeats = 0;
|
||||||
this.observedCompleted = new LongOpenHashSet();
|
this.observedCompleted = new LongOpenHashSet();
|
||||||
}
|
}
|
||||||
@ -743,7 +743,7 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
|
|||||||
name = null;
|
name = null;
|
||||||
schematic = null;
|
schematic = null;
|
||||||
realSchematic = null;
|
realSchematic = null;
|
||||||
layer = 0;
|
layer = Baritone.settings().startAtLayer.value;
|
||||||
numRepeats = 0;
|
numRepeats = 0;
|
||||||
paused = false;
|
paused = false;
|
||||||
observedCompleted = null;
|
observedCompleted = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user