Fixed false positive with slow falling potion and upped default teleport protection

This commit is contained in:
Rammelkast committed 2020-04-24 18:54:15 +02:00
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;