From c3a21b928ea42e318cd30647c2b364ebea0dff4a Mon Sep 17 00:00:00 2001 From: Brady Date: Sun, 23 Sep 2018 21:35:36 -0500 Subject: [PATCH] When PathingBehavior is disabled, clear all of the key override states --- src/main/java/baritone/behavior/PathingBehavior.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/baritone/behavior/PathingBehavior.java b/src/main/java/baritone/behavior/PathingBehavior.java index ecf28b94..2d62a0f1 100644 --- a/src/main/java/baritone/behavior/PathingBehavior.java +++ b/src/main/java/baritone/behavior/PathingBehavior.java @@ -428,4 +428,9 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior, // System.out.println("Frame took " + (split - start) + " " + (end - split)); //} } + + @Override + public void onDisable() { + Baritone.INSTANCE.getInputOverrideHandler().clearAllKeys(); + } }