diff options
Diffstat (limited to 'patches/server/0314-Improve-java-version-check.patch')
-rw-r--r-- | patches/server/0314-Improve-java-version-check.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/0314-Improve-java-version-check.patch b/patches/server/0314-Improve-java-version-check.patch index 3d9eed5372..7814ffea5a 100644 --- a/patches/server/0314-Improve-java-version-check.patch +++ b/patches/server/0314-Improve-java-version-check.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Improve java version check Co-Authored-By: MiniDigger <[email protected]> diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java -index 446403f73fb1b5687d587889e6f32dce464d05a6..ed167d0d399924d54d9ff99c10ab8ee093efc149 100644 +index bcc9d3b1503b1be1841c9ab40e879a1cbb0549f2..224b7f5394a568a3982f1e9a554e72af969fbe43 100644 --- a/src/main/java/org/bukkit/craftbukkit/Main.java +++ b/src/main/java/org/bukkit/craftbukkit/Main.java @@ -203,11 +203,20 @@ public class Main { @@ -14,8 +14,8 @@ index 446403f73fb1b5687d587889e6f32dce464d05a6..ed167d0d399924d54d9ff99c10ab8ee0 } - float javaVersion = Float.parseFloat(System.getProperty("java.class.version")); -- if (javaVersion > 66.0) { -- System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 22 is supported."); +- if (javaVersion > 67.0) { +- System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 23 is supported."); - return; + // Paper start - Improve java version check + boolean skip = Boolean.getBoolean("Paper.IgnoreJavaVersion"); |