mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fixed false positive with slow falling potion and upped default teleport protection
This commit is contained in:
1 parent
cc51e9307f
commit
50247f28c9
3 files changed
+10
-3
No files matched your search
@@ -70,6 +70,13 @@ public class VersionUtil {
|
||||
return p.isFlying() || p.isGliding() || p.hasPotionEffect(PotionEffectType.LEVITATION);
|
||||
}
|
||||
|
||||
public static boolean isSlowFalling(Player player) {
|
||||
if (isBountifulUpdate()) {
|
||||
return false;
|
||||
}
|
||||
return player.hasPotionEffect(PotionEffectType.SLOW_FALLING);
|
||||
}
|
||||
|
||||
public static boolean isFrostWalk(Player player) {
|
||||
if (player.getInventory().getBoots() == null || isBountifulUpdate()) {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user