Prepare for Java 16

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-03-17 07:53:10 +11:00
parent 9da047989c
commit 9c13408431
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -149,8 +149,8 @@ public class Main {
}
float javaVersion = Float.parseFloat(System.getProperty("java.class.version"));
if (javaVersion > 59.0) {
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 15 is supported.");
if (javaVersion > 60.0) {
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 16 is supported.");
return;
}