Skip to content

Commit

Permalink
Don't remap refmaps if legacy mixin ap is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Feb 29, 2024
1 parent 3dd0bf2 commit 2e37fec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ class LoomInterface11(private val project: Project) : LoomInterface {
extension.setGenerateSrgTiny(value)
}

override val legacyMixinApEnabled: Boolean
get() = extension.mixin.useLegacyMixinAp.get()

override val generateTransformerPropertiesInTask = true

override fun settingsPostEdit(action: (config: LoomInterface.LoomRunConfig) -> Unit) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ open class ArchitectPluginExtension(val project: Project) {
)

if (platform != "neoforge") {
map[BuiltinProperties.REFMAP_NAME] = loom.refmapName
if (loom.legacyMixinApEnabled) {
map[BuiltinProperties.REFMAP_NAME] = loom.refmapName
}

map[BuiltinProperties.MAPPINGS_WITH_SRG] = loom.tinyMappingsWithSrg.toString()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ interface LoomInterface {
val tinyMappingsWithSrg: Path
val refmapName: String
var generateSrgTiny: Boolean
val legacyMixinApEnabled: Boolean get() = false

/**
* Loom 0.11+ has to generate the runtime transformer properties file
Expand Down

0 comments on commit 2e37fec

Please sign in to comment.