Java 18 support

This commit is contained in:
md_5 2022-03-28 08:10:25 +11:00
parent d53c4fb65c
commit 10922194f4
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -153,8 +153,8 @@ public class Main {
System.err.println("Unsupported Java detected (" + javaVersion + "). This version of Minecraft requires at least Java 17. Check your Java version with the command 'java -version'.");
return;
}
if (javaVersion > 61.0) {
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 17 is supported.");
if (javaVersion > 62.0) {
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 18 is supported.");
return;
}