Force mixin configurations on forge
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
08094e87de
commit
98d7666121
|
@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue