mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Fixed mcMMO TreeFeller causing longreach false-positives
This commit is contained in:
1 parent
08a6d29c9e
commit
b5eaf0bfe8
2 files changed
+18
-13
No files matched your search
@@ -186,7 +186,14 @@ public class Backend
|
||||
|
||||
public boolean checkLongReachBlock(Player player, double x, double y, double z)
|
||||
{
|
||||
return (x >= magic.BLOCK_MAX_DISTANCE || y > magic.BLOCK_MAX_DISTANCE || z > magic.BLOCK_MAX_DISTANCE);
|
||||
if(isInstantBreakExempt(player))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return (x >= magic.BLOCK_MAX_DISTANCE || y > magic.BLOCK_MAX_DISTANCE || z > magic.BLOCK_MAX_DISTANCE);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean checkLongReachDamage(double x, double y, double z)
|
||||
|
||||
Reference in new issue
Block a user