diff options
Diffstat (limited to 'patches/server/0316-Remove-java-version-check.patch')
-rw-r--r-- | patches/server/0316-Remove-java-version-check.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/server/0316-Remove-java-version-check.patch b/patches/server/0316-Remove-java-version-check.patch new file mode 100644 index 0000000000..3573462717 --- /dev/null +++ b/patches/server/0316-Remove-java-version-check.patch @@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Nassim Jahnke <[email protected]> +Date: Wed, 16 Mar 2022 13:58:16 +0100 +Subject: [PATCH] Remove 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..4746f12128928d4fce77bdd96849bedbb47cef0b 100644 +--- a/src/main/java/org/bukkit/craftbukkit/Main.java ++++ b/src/main/java/org/bukkit/craftbukkit/Main.java +@@ -203,11 +203,7 @@ public class Main { + return; + } + +- 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."); +- return; +- } ++ // Paper - remove java version check + + try { + // Paper start - Handled by TerminalConsoleAppender |