Skip to content

Commit

Permalink
Fix dependencies on neoforge, again
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jan 6, 2024
1 parent a51273a commit 391c1ec
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions common/src/main/resources/mods.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ ModsDotGroovy.make {
}
}

dependencies = dependencies.collect {dep ->
new Dependency() {
@Override
Map asForgeMap() {
def map = dep.asForgeMap()
map.remove('mandatory')
map.put('type', this.mandatory ? 'required' : 'optional')
return map
onForge {
dependencies = dependencies.collect { dep ->
new Dependency() {
@Override
Map asForgeMap() {
def map = dep.asForgeMap()
map.remove('mandatory')
map.put('type', this.mandatory ? 'required' : 'optional')
return map
}
}
}
}
Expand Down

0 comments on commit 391c1ec

Please sign in to comment.