Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Fix curseforge relations. It's a single object, not a collection
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewprenger committed Apr 13, 2015
1 parent d2386d0 commit 97936eb
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,12 @@ class CurseArtifact implements Serializable {
Integer parentFileID

@SerializedName("relations")
Set<CurseRelation> curseRelations
CurseRelation curseRelations

void relations(Closure<?> configClosure) {
if (curseRelations == null) {
curseRelations = new HashSet<>()
}
CurseRelation relation = new CurseRelation()
relation.with(configClosure)
curseRelations.add(relation)
curseRelations = relation
}

/**
Expand Down

0 comments on commit 97936eb

Please sign in to comment.