mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-04 14:38:47 +00:00
Log instant break for instaBreak events AND instantBreak blocks
This commit is contained in:
1 parent
69aee38cb6
commit
c696f21fdd
1 file changed
+1
-1
@@ -41,7 +41,7 @@ public class BlockListener extends EventListener {
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void onBlockDamage(BlockDamageEvent event) {
|
||||
Player player = event.getPlayer();
|
||||
if (event.getInstaBreak() && Utilities.isInstantBreak(event.getBlock().getType())) {
|
||||
if (event.getInstaBreak() || Utilities.isInstantBreak(event.getBlock().getType())) {
|
||||
backend.logInstantBreak(player);
|
||||
}
|
||||
if (checkManager.willCheck(player, CheckType.AUTOTOOL) && backend.justSwitchedTool(player)) {
|
||||
|
||||
Reference in new issue
Block a user