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
2 files changed
+2
-2
No files matched your search
@@ -51,7 +51,7 @@
|
|||||||
<version>1.2.5-R3.0</version>
|
<version>1.2.5-R3.0</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.google.guava</groupId>
|
<groupId>com.google.guava</groupId>
|
||||||
<artifactId>guava</artifactId>
|
<artifactId>guava</artifactId>
|
||||||
|
|||||||
@@ -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