really cancel

This commit is contained in:
Leijurv 2018-08-28 07:29:41 -07:00
parent c404258b00
commit 850beb6c08
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -19,13 +19,13 @@ package baritone.utils;
import baritone.Baritone;
import baritone.Settings;
import baritone.api.event.events.ChatEvent;
import baritone.behavior.Behavior;
import baritone.behavior.impl.FollowBehavior;
import baritone.behavior.impl.PathingBehavior;
import baritone.chunk.ChunkPacker;
import baritone.chunk.Waypoint;
import baritone.chunk.WorldProvider;
import baritone.api.event.events.ChatEvent;
import baritone.pathing.calc.AStarPathFinder;
import baritone.pathing.goals.*;
import baritone.pathing.movement.ActionCosts;
@ -108,6 +108,7 @@ public class ExampleBaritoneControl extends Behavior {
}
if (msg.toLowerCase().equals("cancel")) {
PathingBehavior.INSTANCE.cancel();
FollowBehavior.INSTANCE.cancel();
event.cancel();
displayChatMessageRaw("ok canceled");
return;