Not fail with 0.6 loom

This commit is contained in:
shedaniel
2021-01-18 13:39:47 +08:00
parent bbbb02a811
commit 475c79fc67

View File

@@ -87,9 +87,11 @@ open class TransformTask : Jar() {
runCatching {
refmapHelperClass = Class.forName("net.fabricmc.loom.util.MixinRefmapHelper")
}.onFailure {
refmapHelperClass = Class.forName("net.fabricmc.loom.build.MixinRefmapHelper")
}.onFailure {
throw ClassNotFoundException("Failed to find MixinRefmapHelper!")
runCatching {
refmapHelperClass = Class.forName("net.fabricmc.loom.build.MixinRefmapHelper")
}.onFailure {
throw ClassNotFoundException("Failed to find MixinRefmapHelper!")
}
}
val method = refmapHelperClass!!.getDeclaredMethod(