Add message and actually cancel event
This commit is contained in:
parent
820c108548
commit
ee6e0b1784
@ -481,7 +481,9 @@ public class ExampleBaritoneControl extends Behavior implements Helper {
|
||||
return;
|
||||
}
|
||||
if (msg.equals("pause")) {
|
||||
PathingBehavior.INSTANCE.toggle();
|
||||
boolean enabled = PathingBehavior.INSTANCE.toggle();
|
||||
logDirect("Pathing Behavior has " + (enabled ? "resumed" : "paused") + ".");
|
||||
event.cancel();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user