Fix Zombie Leaders spawning EVERYWHERE.

This commit is contained in:
sigonasr2 2016-09-05 22:42:28 -05:00
parent bffc050f8c
commit ff86174fd4
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -57,6 +57,9 @@ public class MonsterController {
return false; return false;
} }
} else } else
if (!meetsConditionsToSpawn(ent)) {
return false;
}
if (isZombieLeader(ent)) { if (isZombieLeader(ent)) {
//Zombie leaders have faster movement. //Zombie leaders have faster movement.
ent.addPotionEffect(new PotionEffect(PotionEffectType.SPEED,Integer.MAX_VALUE,1)); ent.addPotionEffect(new PotionEffect(PotionEffectType.SPEED,Integer.MAX_VALUE,1));
@ -73,9 +76,6 @@ public class MonsterController {
TwosideKeeper.log(ChatColor.DARK_PURPLE+"Converting to Elite.", 2); TwosideKeeper.log(ChatColor.DARK_PURPLE+"Converting to Elite.", 2);
convertMonster(m,md); convertMonster(m,md);
return true; return true;
} else
if (!meetsConditionsToSpawn(ent)) {
return false;
} }
if (ent.getWorld().getName().equalsIgnoreCase("world_the_end")) { if (ent.getWorld().getName().equalsIgnoreCase("world_the_end")) {
Monster m = (Monster)ent; Monster m = (Monster)ent;