Merge branch 'master' of github.com:cabaletta/baritone
This commit is contained in:
commit
4fa64059af
@ -42,8 +42,7 @@ public class PathingBehavior extends Behavior {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTick(TickEvent event) {
|
public void onTick(TickEvent event) {
|
||||||
// System.out.println("Ticking");
|
if(event.getType() == TickEvent.Type.OUT || current == null) {
|
||||||
if (current == null) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
current.onTick(event);
|
current.onTick(event);
|
||||||
|
@ -13,6 +13,14 @@ public final class TickEvent {
|
|||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Type getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EventState getState() {
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public enum Type {
|
public enum Type {
|
||||||
/**
|
/**
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
package baritone.bot.pathing.movement.movements;
|
||||||
|
|
||||||
|
public class MovementFall {
|
||||||
|
}
|
@ -35,6 +35,9 @@ public class PathExecutor extends Behavior {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTick(TickEvent event) {
|
public void onTick(TickEvent event) {
|
||||||
|
if(event.getType() == TickEvent.Type.OUT) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (pathPosition >= path.length()) {
|
if (pathPosition >= path.length()) {
|
||||||
//stop bugging me, I'm done
|
//stop bugging me, I'm done
|
||||||
//TODO Baritone.INSTANCE.behaviors.remove(this)
|
//TODO Baritone.INSTANCE.behaviors.remove(this)
|
||||||
|
Loading…
Reference in New Issue
Block a user