This commit is contained in:
fullwall 2014-04-08 16:53:19 +08:00
commit b1cbc4f409

View File

@ -119,7 +119,9 @@ public class MCTargetStrategy implements PathStrategy, EntityTarget {
if (cancelReason != null) {
return true;
}
setPath();
if (target.world.getWorld().getFullTime() % 10 == 0) {
setPath();
}
NMS.look(handle, target);
if (aggro && canAttack()) {
AttackStrategy strategy = parameters.attackStrategy();
@ -252,4 +254,4 @@ public class MCTargetStrategy implements PathStrategy, EntityTarget {
P_NAV_J = NMS.getField(PlayerNavigation.class, "j");
P_NAV_M = NMS.getField(PlayerNavigation.class, "m");
}
}
}