Update ASM and add support for Java 17

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-08-13 08:45:32 +10:00
parent 3483bd08b3
commit fdefaeeccd
2 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>9.1</version>
<version>9.2</version>
<scope>compile</scope>
</dependency>
<!-- deprecated API depend -->

View file

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