Skip to content

Commit

Permalink
Fix dependencies on neoforge
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jan 6, 2024
1 parent 4269600 commit a51273a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions common/src/main/resources/mods.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,11 @@ ModsDotGroovy.make {
new Dependency() {
@Override
Map asForgeMap() {
def map = super.asForgeMap()
def map = dep.asForgeMap()
map.remove('mandatory')
map.put('type', this.mandatory ? 'required' : 'optional')
return map
}
}.tap {
it.modId = dep.modId
it.mandatory = dep.mandatory
it.versionRange = dep.versionRange
it.ordering = dep.ordering
it.side = dep.side
}
}
}
Expand Down

0 comments on commit a51273a

Please sign in to comment.