From f867dd87d492d3de72df11b913e36d52b5fa4dd0 Mon Sep 17 00:00:00 2001 From: cubewhy <61075476+cubewhy@users.noreply.github.com> Date: Sat, 26 Oct 2024 15:24:39 +0800 Subject: [PATCH] feat: Allow use Java21 to run Celestial --- src/main/kotlin/org/cubewhy/celestial/Celestial.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/cubewhy/celestial/Celestial.kt b/src/main/kotlin/org/cubewhy/celestial/Celestial.kt index 16190a5..5d3adc0 100644 --- a/src/main/kotlin/org/cubewhy/celestial/Celestial.kt +++ b/src/main/kotlin/org/cubewhy/celestial/Celestial.kt @@ -267,7 +267,7 @@ private fun checkJava() { ) + "(" + System.getProperty("java.vendor") + ") Arch: " + System.getProperty("os.arch") ) - if (javaVersion != "17") { + if (javaVersion != "17" && javaVersion != "21") { log.warn("Compatibility warning: The Java you are currently using may not be able to start LunarClient properly (Java 17 is recommended)") JOptionPane.showMessageDialog( null,