1
0
mirror of https://github.com/cabaletta/baritone synced 2024-12-21 22:50:11 +00:00

that already does that

This commit is contained in:
Leijurv 2018-11-04 10:30:46 -08:00
parent 338fdb509a
commit cd3aef47a5
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -227,15 +227,11 @@ public class ExampleBaritoneControl extends Behavior implements Helper {
return true;
}
if (msg.equals("cancel") || msg.equals("stop")) {
baritone.getMineProcess().cancel();
baritone.getFollowProcess().cancel();
pathingBehavior.cancelEverything();
logDirect("ok canceled");
return true;
}
if (msg.equals("forcecancel")) {
baritone.getMineProcess().cancel();
baritone.getFollowProcess().cancel();
pathingBehavior.cancelEverything();
AbstractNodeCostSearch.forceCancel();
pathingBehavior.forceCancel();