From 77d026306a32e40c00983b7083255befa63a9389 Mon Sep 17 00:00:00 2001 From: Amnet Date: Mon, 13 May 2013 05:07:45 +0200 Subject: [PATCH] Fixed a bug with mudballs. --- .../biomesoplenty/items/projectiles/EntityMudball.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)