Force mixin configurations on forge

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-02-18 12:55:02 +01:00
parent 08094e87de
commit 98d7666121
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,11 @@ subprojects {
javaClass.getDeclaredMethod("getDefaultRefmapName").invoke(this).let { refmapProperty ->
refmapProperty.javaClass.getDeclaredMethod("set", Any::class.java).invoke(refmapProperty, refmap)
}
if (isForge) {
this@with.getDeclaredMethod("getForge").invoke(this@configure).let { forgeObject ->
forgeObject.javaClass.getMethod("mixinConfigs", Array<String>::class.java).invoke(forgeObject, (javaClass.getMethod("getMixinSourceSets").invoke(this) as Collection<SourceSet>).map { it.name.apply { println(this) } }.toTypedArray())
}
}
}
}
}