Skip to content

Commit

Permalink
fix 1.21.1 and 1.21.3 being marked as incompatible with compatible ve…
Browse files Browse the repository at this point in the history
…rsions, closes #53
  • Loading branch information
DeDiamondPro committed Oct 24, 2024
1 parent 12bacca commit 093bc9e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -377,15 +377,15 @@ 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.1" -> "1.21.1"
supportedVersionRange.first == supportedVersionRange.second -> supportedVersionRange.first
listOf("1.16", "1.18").contains(supportedVersionRange.first) -> "${supportedVersionRange.first}.x"
else -> "${supportedVersionRange.first}${supportedVersionRange.second?.let { "-$it" } ?: "+"}"
}
}

fun getFabricMcVersionRange(): String {
if (platform.mcVersion == 12101) return "1.21.1"
else if (platform.mcVersion == 12103) return "1.21.3"
val supportedVersionRange = getSupportedVersionRange()
if (supportedVersionRange.first == supportedVersionRange.second) return supportedVersionRange.first
return ">=${supportedVersionRange.first}${supportedVersionRange.second?.let { " <=$it" } ?: ""}"
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Resourcify 1.5.0.1
- (1.21.2/3 fabric) Fixed mod not being marked as compatible with 1.21.2.
- (1.21.0/1 fabric) Fixed mod not being marked as compatible with 1.21.0.

## Resourcify 1.5.0

Please make sure to report any bugs and/or visual anomalies
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod_name = Resourcify
mod_id = resourcify
mod_version = 1.5.0
mod_version = 1.5.0.1

org.gradle.daemon=true
org.gradle.parallel=true
Expand Down

0 comments on commit 093bc9e

Please sign in to comment.