mirror of
https://github.com/architectury/architectury-plugin.git
synced 2026-03-28 04:07:01 -05:00
Don't remap refmaps if legacy mixin ap is disabled
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -109,7 +109,10 @@ open class ArchitectPluginExtension(val project: Project) {
|
||||
)
|
||||
|
||||
if (platform != "neoforge") {
|
||||
if (loom.legacyMixinApEnabled) {
|
||||
map[BuiltinProperties.REFMAP_NAME] = loom.refmapName
|
||||
}
|
||||
|
||||
map[BuiltinProperties.MAPPINGS_WITH_SRG] = loom.tinyMappingsWithSrg.toString()
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user