mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 08:17:44 +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>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>9.4</version>
|
||||
<version>9.5</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<!-- 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'.");
|
||||
return;
|
||||
}
|
||||
if (javaVersion > 64.0) {
|
||||
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 20 is supported.");
|
||||
if (javaVersion > 65.0) {
|
||||
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 21 is supported.");
|
||||
return;
|
||||
}
|
||||
String javaVersionName = System.getProperty("java.version");
|
||||
|
Loading…
Reference in New Issue
Block a user