Add TickEvent typecheck

This commit is contained in:
Howard Stark 2018-08-06 13:07:30 -07:00
parent f320c6710a
commit a4ccfe50a7
No known key found for this signature in database
GPG Key ID: 9FA4E350B33067F3
1 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,9 @@ public class PathExecutor extends Behavior {
@Override @Override
public void onTick(TickEvent event) { public void onTick(TickEvent event) {
if(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)