cancel lol
This commit is contained in:
@@ -54,6 +54,14 @@ public class Elytra extends Behavior implements Helper {
|
||||
public int sinceFirework;
|
||||
public BlockPos goal;
|
||||
|
||||
public void cancel() {
|
||||
this.path.clear();
|
||||
this.goal = null;
|
||||
this.playerNear = 0;
|
||||
this.goingTo = 0;
|
||||
this.sinceFirework = 0;
|
||||
}
|
||||
|
||||
private void pathfindAroundObstacles() {
|
||||
outer:
|
||||
while (true) {
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
package baritone.command.defaults;
|
||||
|
||||
import baritone.Baritone;
|
||||
import baritone.api.IBaritone;
|
||||
import baritone.api.command.Command;
|
||||
import baritone.api.command.argument.IArgConsumer;
|
||||
@@ -180,6 +181,7 @@ public class ExecutionControlCommands {
|
||||
paused[0] = false;
|
||||
}
|
||||
baritone.getPathingBehavior().cancelEverything();
|
||||
((Baritone) baritone).elytra.cancel();
|
||||
logDirect("ok canceled");
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
package baritone.command.defaults;
|
||||
|
||||
import baritone.Baritone;
|
||||
import baritone.api.IBaritone;
|
||||
import baritone.api.behavior.IPathingBehavior;
|
||||
import baritone.api.command.Command;
|
||||
@@ -39,6 +40,7 @@ public class ForceCancelCommand extends Command {
|
||||
IPathingBehavior pathingBehavior = baritone.getPathingBehavior();
|
||||
pathingBehavior.cancelEverything();
|
||||
pathingBehavior.forceCancel();
|
||||
((Baritone) baritone).elytra.cancel();
|
||||
logDirect("ok force canceled");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user