diff --git a/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java b/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java index 2592c9d7..a18b5d7e 100644 --- a/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java +++ b/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java @@ -42,8 +42,7 @@ public class PathingBehavior extends Behavior { @Override public void onTick(TickEvent event) { - // System.out.println("Ticking"); - if (current == null) { + if(event.getType() == TickEvent.Type.OUT || current == null) { return; } current.onTick(event); diff --git a/src/main/java/baritone/bot/event/events/TickEvent.java b/src/main/java/baritone/bot/event/events/TickEvent.java index 4e6790ba..b6c732b2 100644 --- a/src/main/java/baritone/bot/event/events/TickEvent.java +++ b/src/main/java/baritone/bot/event/events/TickEvent.java @@ -13,6 +13,14 @@ public final class TickEvent { this.type = type; } + public Type getType() { + return type; + } + + public EventState getState() { + return state; + } + public enum Type { /** diff --git a/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java b/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java new file mode 100644 index 00000000..94bece12 --- /dev/null +++ b/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java @@ -0,0 +1,4 @@ +package baritone.bot.pathing.movement.movements; + +public class MovementFall { +} diff --git a/src/main/java/baritone/bot/pathing/path/PathExecutor.java b/src/main/java/baritone/bot/pathing/path/PathExecutor.java index 3ebd344c..8d0c0d53 100644 --- a/src/main/java/baritone/bot/pathing/path/PathExecutor.java +++ b/src/main/java/baritone/bot/pathing/path/PathExecutor.java @@ -35,6 +35,7 @@ public class PathExecutor extends Behavior { @Override public void onTick(TickEvent event) { + if(event.) if (pathPosition >= path.length()) { //stop bugging me, I'm done //TODO Baritone.INSTANCE.behaviors.remove(this)