Fixed a bug with mudballs.
This commit is contained in:
parent
e738e1ff62
commit
77d026306a
1 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ public class EntityMudball extends EntityThrowable
|
|||
if (par1MovingObjectPosition.entityHit != null)
|
||||
{
|
||||
par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), 0);
|
||||
if (par1MovingObjectPosition.entityHit instanceof EntityLiving)
|
||||
((EntityLiving)par1MovingObjectPosition.entityHit).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 400, 2));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue