Add support for Java 20

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2023-02-23 07:19:41 +11:00
parent eb0a08e7f1
commit c9f381c842
2 changed files with 4 additions and 16 deletions

View file

@ -54,7 +54,7 @@
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>9.3</version>
<version>9.4</version>
<scope>compile</scope>
</dependency>
<!-- Mojang depends -->
@ -360,19 +360,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>9.3</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>9.3</version>
</dependency>
</dependencies>
<version>3.4.1</version>
<executions>
<execution>
<phase>package</phase>

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