From 50969cb1bcfc29421eeb250b6b29c1fe19b2abac Mon Sep 17 00:00:00 2001 From: Adubbz Date: Mon, 6 May 2013 20:10:01 +1000 Subject: [PATCH] Fixed poison ivy --- src/minecraft/biomesoplenty/blocks/BlockBOPFoliage.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/minecraft/biomesoplenty/blocks/BlockBOPFoliage.java b/src/minecraft/biomesoplenty/blocks/BlockBOPFoliage.java index ecfedcfb0..3d3948fdf 100644 --- a/src/minecraft/biomesoplenty/blocks/BlockBOPFoliage.java +++ b/src/minecraft/biomesoplenty/blocks/BlockBOPFoliage.java @@ -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)); + } } }