Fix riptide false positives, improved performance

This commit is contained in:
Rammelkast committed 2020-11-25 19:08:55 +01:00
1 parent bd1db83a98
commit 7e1f0d83ce
7 files changed
+29 -76

No files matched your search

@@ -35,8 +35,8 @@ import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
public class VersionUtil {
public static final MinecraftVersion CURRENT_VERSION;
private static final List<String> SUPPORTED_VERSIONS;
private static final MinecraftVersion CURRENT_VERSION;
public static String getVersion() {
return Bukkit.getServer().getClass().getPackage().getName().replace(".", ",").split(",")[3];
@@ -73,13 +73,6 @@ public class VersionUtil {
|| AntiCheatReloaded.getManager().getBackend().justLevitated(player);
}
public static boolean isRiptiding(Player player) {
if (!CURRENT_VERSION.isAtLeast(MinecraftVersion.AQUATIC_UPDATE)) {
return false;
}
return player.isRiptiding();
}
public static boolean isSlowFalling(Player player) {
if (!CURRENT_VERSION.isAtLeast(MinecraftVersion.AQUATIC_UPDATE)) {
return false;