Fixed distance. It was invalid.

dev
sigonasr2 9 years ago
parent 5caa9a237f
commit fb5e820a13
  1. BIN
      TwosideKeeper.jar
  2. 4
      src/sig/plugin/TwosideKeeper/MonsterController.java

Binary file not shown.

@ -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) {

Loading…
Cancel
Save