when a movement ends, clear all inputs, not just the ones it set on

This commit is contained in:
Leijurv 2018-08-07 08:05:18 -07:00
parent f9a819b6a5
commit 6dd43372f1
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

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