Fix missed rename making withers too cheaty. Fixes BUKKIT-2972

This commit is contained in:
Travis Watkins 2012-11-18 15:27:15 -06:00
parent 58636c2dd8
commit 7ef9adc04e

View file

@ -227,7 +227,7 @@ public class EntityWither extends EntityMonster implements IRangedEntity {
for (int i1 = 0; i1 < 10 && !list.isEmpty(); ++i1) { for (int i1 = 0; i1 < 10 && !list.isEmpty(); ++i1) {
EntityLiving entityliving = (EntityLiving) list.get(this.random.nextInt(list.size())); EntityLiving entityliving = (EntityLiving) list.get(this.random.nextInt(list.size()));
if (entityliving != this && entityliving.isAlive() && this.m(entityliving)) { if (entityliving != this && entityliving.isAlive() && this.n(entityliving)) {
if (entityliving instanceof EntityHuman) { if (entityliving instanceof EntityHuman) {
if (!((EntityHuman) entityliving).abilities.isInvulnerable) { if (!((EntityHuman) entityliving).abilities.isInvulnerable) {
this.c(i, entityliving.id); this.c(i, entityliving.id);