formatting

This commit is contained in:
ZacSharp 2021-02-19 23:52:18 +01:00
parent c880f71dc8
commit 5a926bf169
No known key found for this signature in database
GPG Key ID: 9453647B005083A3
4 changed files with 12 additions and 12 deletions

View File

@ -73,8 +73,8 @@ public class CompositeSchematic extends AbstractSchematic {
} }
@Override @Override
public void reset(){ public void reset() {
for (CompositeSchematicEntry entry : schematicArr){ for (CompositeSchematicEntry entry : schematicArr) {
if (!(entry.schematic instanceof IStaticSchematic)) { if (!(entry.schematic instanceof IStaticSchematic)) {
entry.schematic.reset(); entry.schematic.reset();
} }

View File

@ -74,9 +74,9 @@ public interface ISchematic {
IBlockState desiredState(int x, int y, int z, IBlockState current, List<IBlockState> approxPlaceable); 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 * Resets possible caches to avoid wrong behavior when moving the schematic around
*/ */
default void reset(){} default void reset() {}
/** /**
* @return The width (X axis length) of this schematic * @return The width (X axis length) of this schematic

View File

@ -32,11 +32,11 @@ public class ReplaceSchematic extends MaskSchematic {
} }
@Override @Override
public void reset(){ public void reset() {
// it's final, can't use this.cache = new Boolean[widthX()][heightY()][lengthZ()] // it's final, can't use this.cache = new Boolean[widthX()][heightY()][lengthZ()]
for (int x = 0; x < cache.length; x++){ for (int x = 0; x < cache.length; x++) {
for (int y = 0; y < cache[0].length; y++){ for (int y = 0; y < cache[0].length; y++) {
for (int z = 0; z < cache[0][0].length; z++){ for (int z = 0; z < cache[0][0].length; z++) {
cache[x][y][z] = null; cache[x][y][z] = null;
} }
} }

View File

@ -381,8 +381,8 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
} }
@Override @Override
public void reset(){ public void reset() {
if (!(realSchematic instanceof IStaticSchematic)){ if (!(realSchematic instanceof IStaticSchematic)) {
realSchematic.reset(); realSchematic.reset();
} }
} }
@ -424,7 +424,7 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
// build repeat time // build repeat time
layer = 0; layer = 0;
origin = new BlockPos(origin).add(repeat); origin = new BlockPos(origin).add(repeat);
if (!(schematic instanceof IStaticSchematic) && !Baritone.settings().buildRepeatSneaky.value){ if (!(schematic instanceof IStaticSchematic) && !Baritone.settings().buildRepeatSneaky.value) {
schematic.reset(); schematic.reset();
} }
logDirect("Repeating build in vector " + repeat + ", new origin is " + origin); logDirect("Repeating build in vector " + repeat + ", new origin is " + origin);