mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Reduce extra fastBreak time calculation
This commit is contained in:
1 parent
2a8e56e5e6
commit
e8c5a55f34
1 file changed
+1
-7
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user