Skip to content

Commit

Permalink
Update PackInstaller.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
DovydasTEDS authored May 19, 2024
1 parent da2f98d commit 7099142
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7099142

Please sign in to comment.