diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/game/GameJavaVersion.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/game/GameJavaVersion.java index 5f5afda69..e02f9eafe 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/game/GameJavaVersion.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/game/GameJavaVersion.java @@ -33,7 +33,7 @@ public final class GameJavaVersion { public static final GameJavaVersion LATEST = JAVA_21; public static GameJavaVersion getMinimumJavaVersion(GameVersionNumber gameVersion) { - if (gameVersion.compareTo("1.21") >= 0) + if (gameVersion.compareTo("1.20.5") >= 0) return JAVA_21; if (gameVersion.compareTo("1.18") >= 0) return JAVA_17; @@ -59,21 +59,6 @@ public final class GameJavaVersion { } } - public static boolean isSupportedPlatform(Platform platform) { - OperatingSystem os = platform.getOperatingSystem(); - Architecture arch = platform.getArchitecture(); - switch (arch) { - case X86: - return os == OperatingSystem.WINDOWS || os == OperatingSystem.LINUX; - case X86_64: - return os == OperatingSystem.WINDOWS || os == OperatingSystem.LINUX || os == OperatingSystem.OSX; - case ARM64: - return os == OperatingSystem.WINDOWS || os == OperatingSystem.OSX; - default: - return false; - } - } - public static List getSupportedVersions(Platform platform) { OperatingSystem operatingSystem = platform.getOperatingSystem(); Architecture architecture = platform.getArchitecture();