From e8c5a55f34b42bc0a2e24328fd4b5caf36284318 Mon Sep 17 00:00:00 2001 From: gravitylow Date: Tue, 25 Feb 2014 20:13:30 -0500 Subject: [PATCH] Reduce extra fastBreak time calculation --- .../net/gravitydevelopment/anticheat/util/Utilities.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/net/gravitydevelopment/anticheat/util/Utilities.java b/src/main/java/net/gravitydevelopment/anticheat/util/Utilities.java index 12a9942..59746cb 100644 --- a/src/main/java/net/gravitydevelopment/anticheat/util/Utilities.java +++ b/src/main/java/net/gravitydevelopment/anticheat/util/Utilities.java @@ -352,17 +352,11 @@ public final class Utilities { long result = Math.round((bhardness * thardness) * 0.10 * 10000); - result += 150; - if (enchantlvl > 0) { result /= enchantlvl * enchantlvl + 1L; } - if (result > 25000) { - result = 25000; - } else if (result < 0) { - result = 0; - } + result = result > 25000 ? 25000 : result < 0 ? 0 : result; if (isQuickCombo(tool, block)) { result = result / 2;