mirror of
https://github.com/architectury/architectury-plugin.git
synced 2026-03-28 04:07:01 -05:00
Merge pull request #11 from malte0811/10-inner-class-refmap
Fix inner classes not being remapped in the refmap
This commit is contained in:
@@ -102,6 +102,7 @@ object FixForgeMixin : Transformer {
|
||||
val methodMatch = methodPattern.matchEntire(originalRef)
|
||||
val fieldMatch = fieldPattern.matchEntire(originalRef)
|
||||
val methodMatchWithoutClass = methodPatternWithoutClass.matchEntire(originalRef)
|
||||
val classMatch = srg.classes.firstOrNull { it.getName("intermediary") == originalRef }
|
||||
|
||||
when {
|
||||
methodMatch != null -> {
|
||||
@@ -157,6 +158,7 @@ object FixForgeMixin : Transformer {
|
||||
})
|
||||
)
|
||||
}
|
||||
classMatch != null -> obj.addProperty(key, classMatch.getName("srg"))
|
||||
else -> project.logger.warn("Failed to remap refmap value: $originalRef")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user