formatting
This commit is contained in:
parent
c880f71dc8
commit
5a926bf169
@ -73,8 +73,8 @@ public class CompositeSchematic extends AbstractSchematic {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reset(){
|
||||
for (CompositeSchematicEntry entry : schematicArr){
|
||||
public void reset() {
|
||||
for (CompositeSchematicEntry entry : schematicArr) {
|
||||
if (!(entry.schematic instanceof IStaticSchematic)) {
|
||||
entry.schematic.reset();
|
||||
}
|
||||
|
@ -74,9 +74,9 @@ public interface ISchematic {
|
||||
IBlockState desiredState(int x, int y, int z, IBlockState current, List<IBlockState> approxPlaceable);
|
||||
|
||||
/**
|
||||
* Resets possible caches to avoid wrong behavior when moving the schematic around
|
||||
*/
|
||||
default void reset(){}
|
||||
* Resets possible caches to avoid wrong behavior when moving the schematic around
|
||||
*/
|
||||
default void reset() {}
|
||||
|
||||
/**
|
||||
* @return The width (X axis length) of this schematic
|
||||
|
@ -32,11 +32,11 @@ public class ReplaceSchematic extends MaskSchematic {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reset(){
|
||||
public void reset() {
|
||||
// it's final, can't use this.cache = new Boolean[widthX()][heightY()][lengthZ()]
|
||||
for (int x = 0; x < cache.length; x++){
|
||||
for (int y = 0; y < cache[0].length; y++){
|
||||
for (int z = 0; z < cache[0][0].length; z++){
|
||||
for (int x = 0; x < cache.length; x++) {
|
||||
for (int y = 0; y < cache[0].length; y++) {
|
||||
for (int z = 0; z < cache[0][0].length; z++) {
|
||||
cache[x][y][z] = null;
|
||||
}
|
||||
}
|
||||
|
@ -381,8 +381,8 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reset(){
|
||||
if (!(realSchematic instanceof IStaticSchematic)){
|
||||
public void reset() {
|
||||
if (!(realSchematic instanceof IStaticSchematic)) {
|
||||
realSchematic.reset();
|
||||
}
|
||||
}
|
||||
@ -424,7 +424,7 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
|
||||
// build repeat time
|
||||
layer = 0;
|
||||
origin = new BlockPos(origin).add(repeat);
|
||||
if (!(schematic instanceof IStaticSchematic) && !Baritone.settings().buildRepeatSneaky.value){
|
||||
if (!(schematic instanceof IStaticSchematic) && !Baritone.settings().buildRepeatSneaky.value) {
|
||||
schematic.reset();
|
||||
}
|
||||
logDirect("Repeating build in vector " + repeat + ", new origin is " + origin);
|
||||
|
Loading…
Reference in New Issue
Block a user