Fix leaking incorrect positions

It was only cleared when the previous one was canceled, not when it was directly replaced by the next one.
This commit is contained in:
ZacSharp 2022-05-03 23:25:01 +02:00 committed by GitHub
parent cbef05838d
commit ad40a9225e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,6 +108,7 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
this.layer = Baritone.settings().startAtLayer.value; this.layer = Baritone.settings().startAtLayer.value;
this.numRepeats = 0; this.numRepeats = 0;
this.observedCompleted = new LongOpenHashSet(); this.observedCompleted = new LongOpenHashSet();
this.incorrectPositions = null;
} }
public void resume() { public void resume() {