-
Bug
-
Resolution: Invalid
-
None
-
Minecraft 1.7.10
-
None
-
Unconfirmed
the code says:
public void harvestBlock(World world, EntityPlayer player, int p_149636_3_, int p_149636_4_, int p_149636_5_, int p_149636_6_)
{
if (!world.isClient && player.getCurrentEquippedItem() != null && player.getCurrentEquippedItem().getItem() == Items.shears) // The unnecesarry code
else
{ super.harvestBlock(world, player, p_149636_3_, p_149636_4_, p_149636_5_, p_149636_6_); }}
Wouldn't it be enough to test if the player holds a shear since he can't have nothing in his hand AND shears?