Fixed enchantment false-positive

This commit is contained in:
Adam committed 2012-05-29 16:41:03 -04:00
1 parent 12ac4a8ebc
commit 5b0d53c01e
2 files changed
+2 -2

No files matched your search

@@ -386,7 +386,7 @@ public class Backend
public boolean checkSwing(Player player)
{
return !justAnimated(player);
return !player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED) && !justAnimated(player);
}
public boolean checkFastBreak(Player player, Block block)