Skip to content

Commit

Permalink
update publishing workflow for 1.21.4
Browse files Browse the repository at this point in the history
  • Loading branch information
DeDiamondPro committed Dec 8, 2024
1 parent ee571fc commit 5d5d1db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ fun getSupportedVersionRange(): Pair<String, String?> = when (platform.mcVersion
fun getPrettyVersionRange(): String {
val supportedVersionRange = getSupportedVersionRange()
return when {
supportedVersionRange.first == "1.21.2" -> "1.21.3"
supportedVersionRange.first == "1.21.2" -> "1.21.3/4"
supportedVersionRange.first == "1.21.1" -> "1.21.1"
supportedVersionRange.first == supportedVersionRange.second -> supportedVersionRange.first
listOf("1.16", "1.18").contains(supportedVersionRange.first) -> "${supportedVersionRange.first}.x"
Expand All @@ -400,7 +400,7 @@ fun getForgeMcVersionRange(): String {
fun getSupportedVersionList(): List<String> {
val supportedVersionRange = getSupportedVersionRange()
return when (supportedVersionRange.first) {
"1.21.2" -> listOf("1.21.2", "1.21.3")
"1.21.2" -> listOf("1.21.2", "1.21.3", "1.21.4")
else -> {
val minorVersion = supportedVersionRange.first.let {
if (it.count { c -> c == '.' } == 1) it else it.substringBeforeLast(".")
Expand Down

0 comments on commit 5d5d1db

Please sign in to comment.