mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 16:57:42 +01:00
Add support for Java 21
By: md_5 <git@md-5.net>
This commit is contained in:
parent
dc3bd245f7
commit
43bd62c7f5
@ -54,7 +54,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.ow2.asm</groupId>
|
<groupId>org.ow2.asm</groupId>
|
||||||
<artifactId>asm</artifactId>
|
<artifactId>asm</artifactId>
|
||||||
<version>9.4</version>
|
<version>9.5</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- Mojang depends -->
|
<!-- Mojang depends -->
|
||||||
|
@ -165,8 +165,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 > 64.0) {
|
if (javaVersion > 65.0) {
|
||||||
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 20 is supported.");
|
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 21 is supported.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
String javaVersionName = System.getProperty("java.version");
|
String javaVersionName = System.getProperty("java.version");
|
||||||
|
Loading…
Reference in New Issue
Block a user