Call reset() on static schematics as well

This commit is contained in:
ZacSharp 2021-02-19 23:57:33 +01:00
parent 5a926bf169
commit 971b75860f
No known key found for this signature in database
GPG Key ID: 9453647B005083A3
2 changed files with 3 additions and 7 deletions

View File

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

View File

@ -382,9 +382,7 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
@Override
public void reset() {
if (!(realSchematic instanceof IStaticSchematic)) {
realSchematic.reset();
}
realSchematic.reset();
}
@Override
@ -424,7 +422,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 (!Baritone.settings().buildRepeatSneaky.value) {
schematic.reset();
}
logDirect("Repeating build in vector " + repeat + ", new origin is " + origin);