mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-05 01:10:19 -05:00
SPIGOT-5331: Add support for Java 13
This commit is contained in:
1 parent
6ddeb980cf
commit
a3fdef8c32
1 file changed
+2
-2
@@ -148,8 +148,8 @@ public class Main {
|
||||
}
|
||||
|
||||
float javaVersion = Float.parseFloat(System.getProperty("java.class.version"));
|
||||
if (javaVersion > 56.0) {
|
||||
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 12 is supported.");
|
||||
if (javaVersion > 57.0) {
|
||||
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 13 is supported.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user