mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
Fixed enchantment false-positive
This commit is contained in:
1 parent
12ac4a8ebc
commit
5b0d53c01e
1 file changed
+1
-1
@@ -386,7 +386,7 @@ public class Backend
|
|||||||
|
|
||||||
public boolean checkSwing(Player player)
|
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)
|
public boolean checkFastBreak(Player player, Block block)
|
||||||
|
|||||||
Reference in new issue
Block a user