From 4293e12f4f418486815ad70c78b2de5b301cc9cf Mon Sep 17 00:00:00 2001 From: Adubbz Date: Mon, 6 May 2013 20:04:16 +1000 Subject: [PATCH] Work on making Posion Ivy actually poison mobs/the player --- .../biomesoplenty/blocks/BlockBOPFoliage.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/minecraft/biomesoplenty/blocks/BlockBOPFoliage.java b/src/minecraft/biomesoplenty/blocks/BlockBOPFoliage.java index ee26002e0..ecfedcfb0 100644 --- a/src/minecraft/biomesoplenty/blocks/BlockBOPFoliage.java +++ b/src/minecraft/biomesoplenty/blocks/BlockBOPFoliage.java @@ -164,11 +164,15 @@ public class BlockBOPFoliage extends BlockFlower implements IShearable world.setBlock(x, y, z, Block.tallGrass.blockID, 1, 2); } - public void onEntityCollidedWithBlock(World world, int x, int y, int z, EntityLiving entity) + @Override + public void onEntityCollidedWithBlock(World par1World, int x, int y, int z, Entity par5Entity) { - int meta = world.getBlockMetadata(x, y, z); + int meta = par1World.getBlockMetadata(x, y, z); + if (meta == 6) - entity.addPotionEffect(new PotionEffect(Potion.poison.id, 200)); + { + ((EntityPlayer)par5Entity).addPotionEffect(new PotionEffect(Potion.poison.id, 200)); + } } @Override