mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-04 22:15:22 +00:00
Same fix for block breaking, and forgot to ignore long grass for fastbreak.
This commit is contained in:
1 parent
f66db829f7
commit
cea645b3c5
1 file changed
+5
-1
@@ -65,7 +65,9 @@ public class BlockListener implements Listener {
|
||||
tracker.decreaseLevel(player);
|
||||
}
|
||||
}
|
||||
if (!player.hasPermission("anticheat.fastbreak") && !player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED))
|
||||
if (!player.hasPermission("anticheat.fastbreak"))
|
||||
{
|
||||
if(!player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED))
|
||||
{
|
||||
if(block.getType() != Material.RED_MUSHROOM
|
||||
&& block.getType() != Material.RED_ROSE
|
||||
@@ -76,6 +78,7 @@ public class BlockListener implements Listener {
|
||||
&& block.getType() != Material.REDSTONE_TORCH_ON
|
||||
&& block.getType() != Material.REDSTONE_WIRE
|
||||
&& block.getType() != Material.GRASS
|
||||
&& block.getType() != Material.LONG_GRASS
|
||||
&& block.getType() != Material.PAINTING
|
||||
&& block.getType() != Material.WHEAT
|
||||
&& block.getType() != Material.SUGAR_CANE
|
||||
@@ -101,6 +104,7 @@ public class BlockListener implements Listener {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
am.reset(player);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user