mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Exempt walking on wall/fence from flight check
This commit is contained in:
1 parent
7ea8765212
commit
cd0351f028
2 files changed
+9
-19
No files matched your search
@@ -203,6 +203,14 @@ public final class Utilities {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static boolean blockIsnt(Block block, Material[] materials) {
|
||||
Material type = block.getType();
|
||||
for(Material m : materials) {
|
||||
if(m == type) return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static {
|
||||
INSTANT_BREAK.add(Material.RED_MUSHROOM);
|
||||
INSTANT_BREAK.add(Material.RED_ROSE);
|
||||
|
||||
Reference in new issue
Block a user