diff --git a/src/minecraft/biomesoplenty/items/projectiles/EntityMudball.java b/src/minecraft/biomesoplenty/items/projectiles/EntityMudball.java index b8b332c87..7a653384b 100644 --- a/src/minecraft/biomesoplenty/items/projectiles/EntityMudball.java +++ b/src/minecraft/biomesoplenty/items/projectiles/EntityMudball.java @@ -37,7 +37,8 @@ public class EntityMudball extends EntityThrowable if (par1MovingObjectPosition.entityHit != null) { par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), 0); - ((EntityLiving)par1MovingObjectPosition.entityHit).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 400, 2)); + if (par1MovingObjectPosition.entityHit instanceof EntityLiving) + ((EntityLiving)par1MovingObjectPosition.entityHit).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 400, 2)); } for (int i = 0; i < 16; ++i)