Skip to content

Commit

Permalink
Remove workaround for downloading 1.21 manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
UserNugget committed Jun 13, 2024
1 parent a117bd7 commit c6dbcca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ File downloadVersionManifest(String version) {
this.println("> Downloading ${version} manifest...")

Object manifest = new JsonSlurper().parse(versionManifestFile)

// TODO: remove this workaround
def optional = manifest.versions.stream().filter({ it.id == (version == "1.21" ? "1.21-pre2" : version) }).findFirst()
def optional = manifest.versions.stream().filter({ it.id == version }).findFirst()
if (optional.empty()) {
throw new RuntimeException("Couldn't find version: ${version}")
}
Expand Down

0 comments on commit c6dbcca

Please sign in to comment.