From 7099142790c13609e80e24df593d614f02aab68f Mon Sep 17 00:00:00 2001 From: DovydasTEDS <61357186+DovydasTEDS@users.noreply.github.com> Date: Sun, 19 May 2024 21:27:28 +0100 Subject: [PATCH] Update PackInstaller.kt --- .../gaming32/additiveinstaller/PackInstaller.kt | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/main/kotlin/io/github/gaming32/additiveinstaller/PackInstaller.kt b/src/main/kotlin/io/github/gaming32/additiveinstaller/PackInstaller.kt index a5be361..6f92bde 100644 --- a/src/main/kotlin/io/github/gaming32/additiveinstaller/PackInstaller.kt +++ b/src/main/kotlin/io/github/gaming32/additiveinstaller/PackInstaller.kt @@ -132,20 +132,6 @@ class PackInstaller( .asJsonArray .add("-D$prefix=$modsDir$suffix") } - if ((packVersion.packVersion.toVersion() >= "1.15.9".toVersion()) && (packVersion.packVersion.toVersion() <= "1.20.4".toVersion())) { - // HACK HACK HACK World Host has a bug where Java 17 is required - clientJson["javaVersion"] = JsonObject().apply { - this["component"] = "java-runtime-gamma" - this["majorVersion"] = 17 - } - } - if (packVersion.packVersion.toVersion() >= "1.20.5".toVersion()) { - // 1.20.5 + Require Java 21 - clientJson["javaVersion"] = JsonObject().apply { - this["component"] = "java-runtime-delta" - this["majorVersion"] = 21 - } - } writeVersionDir(clientJson) updateLauncherProfiles()