mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
Fix #133 by adding Enchantments to Survival Fastbreak Calculation.
This commit is contained in:
1 parent
24d551468c
commit
75959dbdd9
4 files changed
+44
-1
No files matched your search
@@ -75,7 +75,7 @@ public class BlockListener extends EventListener {
|
||||
final Block block = event.getBlock();
|
||||
boolean noHack = true;
|
||||
if (player != null) {
|
||||
if (checkManager.willCheck(player, CheckType.FAST_BREAK) && !backend.isInstantBreakExempt(player) && backend.checkFastBreak(player, block)) {
|
||||
if (checkManager.willCheck(player, CheckType.FAST_BREAK) && backend.checkFastBreak(player, block)) {
|
||||
event.setCancelled(!config.silentMode());
|
||||
log("tried to break a block of " + block.getType().name() + " too fast.", player, CheckType.FAST_BREAK);
|
||||
noHack = false;
|
||||
|
||||
Reference in new issue
Block a user