Fix some bugs in straight line targeter

This commit is contained in:
fullwall 2020-11-27 22:45:13 +08:00
parent 2f10ac86cc
commit b4943a0e84

View File

@ -231,6 +231,7 @@ public class MCTargetStrategy implements PathStrategy, EntityTarget {
} }
} }
active = null; active = null;
fallback.setPath();
} }
@Override @Override
@ -245,8 +246,9 @@ public class MCTargetStrategy implements PathStrategy, EntityTarget {
public void update() { public void update() {
if (active != null) { if (active != null) {
active.update(); active.update();
} else {
fallback.update();
} }
fallback.update();
} }
} }