Fix errors with Super Zombies.
This commit is contained in:
parent
ddbd1f75ae
commit
6777d458ff
@ -6868,7 +6868,7 @@ implements Listener
|
|||||||
Zombie z = (Zombie)e.getEntity();
|
Zombie z = (Zombie)e.getEntity();
|
||||||
if (z.getCustomName()==null && z.getHealth()>65) {
|
if (z.getCustomName()==null && z.getHealth()>65) {
|
||||||
//If it's a normal zombie with too much HP, something's wrong. Lower it.
|
//If it's a normal zombie with too much HP, something's wrong. Lower it.
|
||||||
z.setHealth(65-z.getMaxHealth()/2);
|
z.setHealth(z.getHealth()/2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (e.getDamager() instanceof Projectile) {
|
if (e.getDamager() instanceof Projectile) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user