Fixed a bug with mudballs.
This commit is contained in:
parent
e738e1ff62
commit
77d026306a
|
@ -37,6 +37,7 @@ public class EntityMudball extends EntityThrowable
|
||||||
if (par1MovingObjectPosition.entityHit != null)
|
if (par1MovingObjectPosition.entityHit != null)
|
||||||
{
|
{
|
||||||
par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), 0);
|
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));
|
((EntityLiving)par1MovingObjectPosition.entityHit).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 400, 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue