mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-04 14:38:47 +00:00
Fixed mcMMO TreeFeller causing longreach false-positives
This commit is contained in:
1 parent
08a6d29c9e
commit
b5eaf0bfe8
2 files changed
+8
-3
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)
|
||||
|
||||
@@ -24,9 +24,7 @@ import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Level;
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
Reference in new issue
Block a user