Skip to content

Commit

Permalink
fix(1.20.6): Fix forge builds
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed May 23, 2024
1 parent dfeeb2f commit 46ef0ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildSrc/src/main/groovy/multiloader-common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ jar {
'Implementation-Title' : project.name,
'Implementation-Version': project.jar.archiveVersion,
'Implementation-Vendor' : mod_author,
'Built-On-Minecraft' : minecraft_version
'Built-On-Minecraft' : minecraft_version,
'MixinConfigs' : "${mod_id}.mixins.json,${mod_id}.${project.name}.mixins.json",
])
}
}
Expand Down
4 changes: 4 additions & 0 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ mixin {
minecraft {
mappings channel: 'official', version: minecraft_version

reobf = false

copyIdeResources = true

// Automatically enable forge AccessTransformers if the file exists
Expand Down Expand Up @@ -75,6 +77,8 @@ sourceSets.main.resources.srcDir 'src/generated/resources'
dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
annotationProcessor "org.spongepowered:mixin:${mixin_version}:processor"
// temporary hacky fix as suggested by Forge
implementation('net.sf.jopt-simple:jopt-simple:5.0.4') { version { strictly '5.0.4' } }
}

apply from: rootProject.file('repositories.gradle')
Expand Down

0 comments on commit 46ef0ce

Please sign in to comment.