Don't call onLostControl on processes that haven't been fully constructed
This commit is contained in:
parent
175df6ce7a
commit
32ef30686b
@ -104,14 +104,14 @@ public class Baritone implements IBaritone {
|
||||
|
||||
this.pathingControlManager = new PathingControlManager(this);
|
||||
{
|
||||
followProcess = new FollowProcess(this);
|
||||
mineProcess = new MineProcess(this);
|
||||
customGoalProcess = new CustomGoalProcess(this); // very high iq
|
||||
getToBlockProcess = new GetToBlockProcess(this);
|
||||
builderProcess = new BuilderProcess(this);
|
||||
exploreProcess = new ExploreProcess(this);
|
||||
backfillProcess = new BackfillProcess(this);
|
||||
farmProcess = new FarmProcess(this);
|
||||
this.getPathingControlManager().registerProcess(followProcess = new FollowProcess(this));
|
||||
this.getPathingControlManager().registerProcess(mineProcess = new MineProcess(this));
|
||||
this.getPathingControlManager().registerProcess(customGoalProcess = new CustomGoalProcess(this)); // very high iq
|
||||
this.getPathingControlManager().registerProcess(getToBlockProcess = new GetToBlockProcess(this));
|
||||
this.getPathingControlManager().registerProcess(builderProcess = new BuilderProcess(this));
|
||||
this.getPathingControlManager().registerProcess(exploreProcess = new ExploreProcess(this));
|
||||
this.getPathingControlManager().registerProcess(backfillProcess = new BackfillProcess(this));
|
||||
this.getPathingControlManager().registerProcess(farmProcess = new FarmProcess(this));
|
||||
}
|
||||
|
||||
this.worldProvider = new WorldProvider();
|
||||
|
@ -30,7 +30,6 @@ public abstract class BaritoneProcessHelper implements IBaritoneProcess, Helper
|
||||
public BaritoneProcessHelper(Baritone baritone) {
|
||||
this.baritone = baritone;
|
||||
this.ctx = baritone.getPlayerContext();
|
||||
baritone.getPathingControlManager().registerProcess(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user