Add message and actually cancel event

This commit is contained in:
Brady 2018-10-03 12:45:57 -05:00
parent 820c108548
commit ee6e0b1784
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -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;
}
}