Fixed issue with shears and leaves

This commit is contained in:
H31IX committed 2012-06-04 18:44:09 -04:00
1 parent ba33955442
commit 6b377ca5cd
2 files changed
+22 -15

No files matched your search

@@ -477,7 +477,7 @@ public class Backend
public boolean checkSwing(Player player, Block block)
{
return !player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED) && !Utilities.isInstantBreak(block.getType()) && !justAnimated(player) && !Utilities.isUsingMcMMOAbility(player);
return !player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED) && !Utilities.isInstantBreak(block.getType()) && !justAnimated(player) && !Utilities.isUsingMcMMOAbility(player) && !(player.getInventory().getItemInHand().getType() == Material.SHEARS && block.getType() == Material.LEAVES);
}
public boolean checkFastBreak(Player player, Block block)