From 2c4e89a35842b6eb8f57bd3f6217176d99c9a7e6 Mon Sep 17 00:00:00 2001 From: Cat Core Date: Thu, 8 Feb 2024 14:53:08 +0100 Subject: [PATCH] Fix version check --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 08879891d..a4f5ac004 100644 --- a/build.gradle +++ b/build.gradle @@ -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!") } }