Skip to content

Commit

Permalink
Fix #1 by excluding addons versions from valid versions types
Browse files Browse the repository at this point in the history
  • Loading branch information
HyCraftHD committed Jun 9, 2022
1 parent e9acf3b commit 241debd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ class CurseVersions {

final VersionType[] types = Util.gson.fromJson(versionTypesJson, VersionType[].class)
types.each { type ->
validVersionTypes.add(type.id)
// Drop addons from valid versions
if(!type.slug.equals("addons")) {
validVersionTypes.add(type.id)
}
}

final String gameVersionsJson = Util.httpGet(api.apiKey, api.versionUrl)
Expand Down

0 comments on commit 241debd

Please sign in to comment.