Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Feb 8, 2024
1 parent ba2e84b commit 2c4e89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ task checkVersion {
def xml = new URL("https://maven.legacyfabric.net/net/legacyfabric/legacy-fabric-api/legacy-fabric-api/maven-metadata.xml").text
def metadata = new groovy.xml.XmlSlurper().parseText(xml)
def versions = metadata.versioning.versions.version*.text()
if (versions.contains(version)) {
if (versions.contains(version + "+1.8.9")) {
throw new RuntimeException("${version} has already been released!")
}
}
Expand Down

0 comments on commit 2c4e89a

Please sign in to comment.