mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fixed enchantment false-positive
This commit is contained in:
1 parent
12ac4a8ebc
commit
5b0d53c01e
2 files changed
+2
-2
No files matched your search
@@ -386,7 +386,7 @@ public class Backend
|
||||
|
||||
public boolean checkSwing(Player player)
|
||||
{
|
||||
return !justAnimated(player);
|
||||
return !player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED) && !justAnimated(player);
|
||||
}
|
||||
|
||||
public boolean checkFastBreak(Player player, Block block)
|
||||
|
||||
Reference in new issue
Block a user