mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-09-18 21:54:50 +00:00
Correct displayed Java version in warning
This commit is contained in:
parent
a7b8b0270a
commit
bafc27ec51
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ public class Main {
|
|||
|
||||
float javaVersion = Float.parseFloat(System.getProperty("java.class.version"));
|
||||
if (javaVersion < 61.0) {
|
||||
System.err.println("Unsupported Java detected (" + javaVersion + "). This version of Minecraft requires at least Java 11. Check your Java version with the command 'java -version'.");
|
||||
System.err.println("Unsupported Java detected (" + javaVersion + "). This version of Minecraft requires at least Java 17. Check your Java version with the command 'java -version'.");
|
||||
return;
|
||||
}
|
||||
if (javaVersion > 61.0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue