From a4ccfe50a74af647394a9cedf066e7fce73cbe93 Mon Sep 17 00:00:00 2001 From: Howard Stark Date: Mon, 6 Aug 2018 13:07:30 -0700 Subject: [PATCH] Add TickEvent typecheck --- src/main/java/baritone/bot/pathing/path/PathExecutor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/bot/pathing/path/PathExecutor.java b/src/main/java/baritone/bot/pathing/path/PathExecutor.java index 8d0c0d53..087e53f6 100644 --- a/src/main/java/baritone/bot/pathing/path/PathExecutor.java +++ b/src/main/java/baritone/bot/pathing/path/PathExecutor.java @@ -35,7 +35,9 @@ public class PathExecutor extends Behavior { @Override public void onTick(TickEvent event) { - if(event.) + if(event.getType() == TickEvent.Type.OUT) { + return; + } if (pathPosition >= path.length()) { //stop bugging me, I'm done //TODO Baritone.INSTANCE.behaviors.remove(this)