mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Re-add exemption for instant break markers
This commit is contained in:
1 parent
15a1329d19
commit
8c82571b86
1 file changed
+1
-1
@@ -625,7 +625,7 @@ public class Backend {
|
||||
|
||||
public CheckResult checkFastBreak(Player player, Block block) {
|
||||
int violations = magic.FASTBREAK_MAXVIOLATIONS;
|
||||
long timemax = Utilities.calcSurvivalFastBreak(player.getInventory().getItemInHand(), block.getType());
|
||||
long timemax = isInstantBreakExempt(player) ? 0 : Utilities.calcSurvivalFastBreak(player.getInventory().getItemInHand(), block.getType());
|
||||
if (player.getGameMode() == GameMode.CREATIVE) {
|
||||
violations = magic.FASTBREAK_MAXVIOLATIONS_CREATIVE;
|
||||
timemax = magic.FASTBREAK_TIMEMAX_CREATIVE;
|
||||
|
||||
Reference in new issue
Block a user