mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fix issue #136
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user