mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
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:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user