mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
More work on the calibrator and respect mcMMO greenthumb events
This commit is contained in:
1 parent
989540d73b
commit
f43c152f16
4 files changed
+190
-79
No files matched your search
@@ -666,14 +666,14 @@ public class Backend
|
||||
|
||||
public boolean checkSwing(Player player, Block block)
|
||||
{
|
||||
if(!player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED) && !(player.getInventory().getItemInHand().getType() == Material.SHEARS && block.getType() == Material.LEAVES))
|
||||
if(!isInstantBreakExempt(player))
|
||||
{
|
||||
return !justAnimated(player);
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
if(!player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED) && !(player.getInventory().getItemInHand().getType() == Material.SHEARS && block.getType() == Material.LEAVES))
|
||||
{
|
||||
return !justAnimated(player);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean checkFastBreak(Player player, Block block)
|
||||
|
||||
Reference in new issue
Block a user