mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Prepare for imminent Java 12 release
This commit is contained in:
parent
a49270b28b
commit
1be05a2146
1 changed files with 2 additions and 2 deletions
|
@ -148,8 +148,8 @@ public class Main {
|
||||||
}
|
}
|
||||||
|
|
||||||
float javaVersion = Float.parseFloat(System.getProperty("java.class.version"));
|
float javaVersion = Float.parseFloat(System.getProperty("java.class.version"));
|
||||||
if (javaVersion > 55.0) {
|
if (javaVersion > 56.0) {
|
||||||
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 11 is supported.");
|
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 12 is supported.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue