From 9c134084317ff3387013c81994a3f7e3716ba894 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 17 Mar 2021 07:53:10 +1100 Subject: [PATCH] Prepare for Java 16 By: md_5 --- paper-server/pom.xml | 2 +- paper-server/src/main/java/org/bukkit/craftbukkit/Main.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/paper-server/pom.xml b/paper-server/pom.xml index 8cee98deb9..aed2c99201 100644 --- a/paper-server/pom.xml +++ b/paper-server/pom.xml @@ -54,7 +54,7 @@ org.ow2.asm asm - 9.0 + 9.1 compile diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java b/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java index cf86959d12..cc744c6f1f 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java @@ -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; }