really cancel, fixes #178

This commit is contained in:
Leijurv
2018-09-24 09:57:06 -07:00
parent 7b0f14a0e5
commit 4ec9a4fc5b
3 changed files with 9 additions and 3 deletions

View File

@@ -206,7 +206,11 @@ public class ExampleBaritoneControl extends Behavior implements Helper {
return;
}
if (msg.equals("forcecancel")) {
MineBehavior.INSTANCE.cancel();
FollowBehavior.INSTANCE.cancel();
PathingBehavior.INSTANCE.cancel();
AbstractNodeCostSearch.forceCancel();
PathingBehavior.INSTANCE.forceCancel();
event.cancel();
logDirect("ok force canceled");
return;