Skip to content

Commit

Permalink
support mixinextra on neoforge
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Dec 3, 2023
1 parent 6b84144 commit a67c3bb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,13 @@ class NeoForgedMinecraftTransformer(project: Project, provider: MinecraftProvide
}

override fun configureRemapJar(task: RemapJarTask) {
val forgeDep = forge.dependencies.first()
if (provider.version != "1.20.1") {
project.logger.info("setting `disableRefmap()` in mixinRemap")
task.mixinRemap {
if (SemVerUtils.matches(forgeDep.version!!.substringBefore("-"), ">=20.2.84")) {
enableMixinExtra()
}
disableRefmap()
}
}
Expand Down

0 comments on commit a67c3bb

Please sign in to comment.