Make targeted NPCs update their path more frequently

This commit is contained in:
fullwall 2015-11-05 15:02:57 +08:00
parent b36e62effd
commit 2813508cc9

View File

@ -118,7 +118,7 @@ public class MCTargetStrategy implements PathStrategy, EntityTarget {
}
if (!aggro && distanceSquared() < parameters.distanceMargin()) {
stop();
} else if (updateCounter++ > 60) {
} else if (updateCounter++ > 20) {
setPath();
updateCounter = 0;
}