mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fixed instant break false-positive
This commit is contained in:
1 parent
5b0d53c01e
commit
0a6ac986b0
2 files changed
+4
-4
No files matched your search
@@ -384,9 +384,9 @@ public class Backend
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean checkSwing(Player player)
|
||||
public boolean checkSwing(Player player, Block block)
|
||||
{
|
||||
return !player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED) && !justAnimated(player);
|
||||
return !player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED) && !Utilities.isInstantBreak(block.getType()) && !justAnimated(player);
|
||||
}
|
||||
|
||||
public boolean checkFastBreak(Player player, Block block)
|
||||
|
||||
Reference in new issue
Block a user