Pixies no longer apply potion effects to players. Easiest fix for a crash when a player takes damage from a ComputerCraft turtle. Closes #820

This commit is contained in:
Lizbeth Rika committed 2015-04-25 15:56:05 +01:00
1 parent b360f13bb2
commit 3ccac3207e
1 file changed
+1 -1
@@ -85,7 +85,7 @@ public class EntityPixie extends EntityFlyingCreature {
target.attackEntityFrom(DamageSource.causeMobDamage(summoner), damage);
}
} else target.attackEntityFrom(DamageSource.causeMobDamage(this), damage);
if(effect != null)
if(effect != null && !(target instanceof EntityPlayer))
target.addPotionEffect(effect);
die();
}