diff --git a/patches/net/minecraft/item/ItemShears.java.patch b/patches/net/minecraft/item/ItemShears.java.patch index d702f9a8..f209637a 100644 --- a/patches/net/minecraft/item/ItemShears.java.patch +++ b/patches/net/minecraft/item/ItemShears.java.patch @@ -1,6 +1,6 @@ --- ../src-base/minecraft/net/minecraft/item/ItemShears.java +++ ../src-work/minecraft/net/minecraft/item/ItemShears.java -@@ -3,7 +3,10 @@ +@@ -3,7 +3,11 @@ import java.util.ArrayList; import java.util.Random; @@ -8,10 +8,11 @@ + import net.minecraft.block.Block; +import net.minecraft.block.BlockLeaves; ++import net.minecraft.block.BlockLeavesBase; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.enchantment.Enchantment; -@@ -61,6 +64,16 @@ +@@ -61,6 +65,16 @@ IShearable target = (IShearable)entity; if (target.isShearable(itemstack, entity.worldObj, (int)entity.posX, (int)entity.posY, (int)entity.posZ)) { @@ -28,12 +29,12 @@ ArrayList drops = target.onSheared(itemstack, entity.worldObj, (int)entity.posX, (int)entity.posY, (int)entity.posZ, EnchantmentHelper.getEnchantmentLevel(Enchantment.fortune.effectId, itemstack)); -@@ -87,14 +100,14 @@ +@@ -87,14 +101,14 @@ return false; } Block block = player.worldObj.getBlock(x, y, z); - if (block instanceof IShearable) -+ if (block instanceof IShearable && !(block instanceof BlockLeaves)) ++ if (block instanceof IShearable && !(block instanceof BlockLeavesBase)) { IShearable target = (IShearable)block; if (target.isShearable(itemstack, player.worldObj, x, y, z))