Fix Zombie Leaders spawning EVERYWHERE.
This commit is contained in:
parent
bffc050f8c
commit
ff86174fd4
Binary file not shown.
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user