Fixed instant break false-positive

This commit is contained in:
Adam committed 2012-05-29 17:38:38 -04:00
1 parent 5b0d53c01e
commit 0a6ac986b0
2 files changed
+4 -4

No files matched your search

@@ -384,9 +384,9 @@ public class Backend
return false;
}
public boolean checkSwing(Player player)
public boolean checkSwing(Player player, Block block)
{
return !player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED) && !justAnimated(player);
return !player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED) && !Utilities.isInstantBreak(block.getType()) && !justAnimated(player);
}
public boolean checkFastBreak(Player player, Block block)