Add support for Java 19

This commit is contained in:
md_5 2022-09-21 06:56:58 +10:00
parent 06c0ce78cc
commit 08cdd26ca9
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -155,8 +155,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'."); 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; return;
} }
if (javaVersion > 62.0) { if (javaVersion > 63.0) {
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 18 is supported."); System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 19 is supported.");
return; return;
} }