Fixed distance. It was invalid.

This commit is contained in:
sigonasr2 2016-09-02 11:01:10 -05:00
parent 5caa9a237f
commit fb5e820a13
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -149,10 +149,10 @@ public class MonsterController {
int nearbyplayers=0;
for (Player p : Bukkit.getOnlinePlayers()) {
double temp = ent.getLocation().distanceSquared(p.getLocation());
if (temp<262144) {nearbyplayers++;}
if (temp<4096) {nearbyplayers++;}
dist = (temp<dist)?temp:dist;
}
return (dist<262144 && ent.getNearbyEntities(16, 16, 16).size()<nearbyplayers*3);
return (dist<4096 && ent.getNearbyEntities(16, 16, 16).size()<nearbyplayers*3);
}
private static boolean meetsConditionsToBeElite(LivingEntity ent) {