From ee6e0b1784a1ca31e1b25ebe073e261e103a87ea Mon Sep 17 00:00:00 2001 From: Brady Date: Wed, 3 Oct 2018 12:45:57 -0500 Subject: [PATCH] Add message and actually cancel event --- src/main/java/baritone/utils/ExampleBaritoneControl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/utils/ExampleBaritoneControl.java b/src/main/java/baritone/utils/ExampleBaritoneControl.java index f656e27f..bbf024f9 100644 --- a/src/main/java/baritone/utils/ExampleBaritoneControl.java +++ b/src/main/java/baritone/utils/ExampleBaritoneControl.java @@ -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; } }