mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fix #32
This commit is contained in:
1 parent
583d2de244
commit
518e4c32e7
3 files changed
+5
-3
No files matched your search
@@ -5,7 +5,6 @@ import java.util.EnumSet;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
|
||||
public class VersionUtil {
|
||||
|
||||
@@ -21,7 +20,7 @@ public class VersionUtil {
|
||||
|
||||
public static boolean isFlying(Player p) {
|
||||
if (getVersion().equals("v1_9_R1") || getVersion().equals("v1_10_R1") || getVersion().equals("v1_11_R1")) {
|
||||
return p.isFlying() || p.isGliding() || p.hasPotionEffect(PotionEffectType.LEVITATION);
|
||||
return p.isFlying() || p.isGliding() || p.hasPotionEffect(NMS_1_9_PLUS.LEVITATION);
|
||||
} else {
|
||||
return p.isFlying();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user