Fixed poison ivy

This commit is contained in:
Adubbz 2013-05-06 20:10:01 +10:00
parent 4293e12f4f
commit 50969cb1bc

View file

@ -169,9 +169,12 @@ public class BlockBOPFoliage extends BlockFlower implements IShearable
{
int meta = par1World.getBlockMetadata(x, y, z);
if (meta == 6)
if (!par1World.isRemote)
{
((EntityPlayer)par5Entity).addPotionEffect(new PotionEffect(Potion.poison.id, 200));
if (meta == 6)
{
((EntityLiving)par5Entity).addPotionEffect(new PotionEffect(Potion.poison.id, 200));
}
}
}