mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +01:00
Prepare for imminent Java 12 release
By: md_5 <git@md-5.net>
This commit is contained in:
parent
dcc541a4a0
commit
f600caaf6a
@ -148,8 +148,8 @@ public class Main {
|
||||
}
|
||||
|
||||
float javaVersion = Float.parseFloat(System.getProperty("java.class.version"));
|
||||
if (javaVersion > 55.0) {
|
||||
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 11 is supported.");
|
||||
if (javaVersion > 56.0) {
|
||||
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 12 is supported.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user