This commit is contained in:
h31ix committed 2013-01-06 14:38:05 -05:00
1 parent d338d4d1e2
commit 7ea8765212
3 files changed
+18 -5

No files matched your search

@@ -182,6 +182,9 @@ public final class Utilities {
}
public static long calcSurvivalFastBreak(ItemStack tool, Material block) {
if(isInstantBreak(block) || (tool.getType() == Material.SHEARS && block.getId() == Material.LEAVES.getId())) {
return 0;
}
double bhardness = BlockHardness.getBlockHardness(block);
double thardness = ToolHardness.getToolHardness(tool.getType());
long enchantlvl = (long) tool.getEnchantmentLevel(Enchantment.DIG_SPEED);