From 6dd43372f1c471879eca2fb7b1bedeb2f99c90b4 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 7 Aug 2018 08:05:18 -0700 Subject: [PATCH] when a movement ends, clear all inputs, not just the ones it set on --- src/main/java/baritone/bot/pathing/path/PathExecutor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/baritone/bot/pathing/path/PathExecutor.java b/src/main/java/baritone/bot/pathing/path/PathExecutor.java index 3884d914..6f09b746 100644 --- a/src/main/java/baritone/bot/pathing/path/PathExecutor.java +++ b/src/main/java/baritone/bot/pathing/path/PathExecutor.java @@ -1,5 +1,6 @@ package baritone.bot.pathing.path; +import baritone.bot.Baritone; import baritone.bot.behavior.Behavior; import baritone.bot.event.events.TickEvent; import baritone.bot.pathing.movement.ActionCosts; @@ -141,6 +142,7 @@ public class PathExecutor extends Behavior { System.out.println("Movement done, next path"); pathPosition++; ticksOnCurrent = 0; + Baritone.INSTANCE.getInputOverrideHandler().clearAllKeys(); onTick(event); } else { ticksOnCurrent++;