From 46a24af373009be83742a7bb178c202b87ec030c Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 16 Oct 2018 11:13:08 -0700 Subject: [PATCH] cancel chat 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 0f03c28f..69c8e214 100644 --- a/src/main/java/baritone/utils/ExampleBaritoneControl.java +++ b/src/main/java/baritone/utils/ExampleBaritoneControl.java @@ -72,7 +72,9 @@ public class ExampleBaritoneControl extends Behavior implements Helper { } msg = msg.substring(1); } - runCommand(msg); + if (runCommand(msg)) { + event.cancel(); + } } public boolean runCommand(String msg) {