mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-28 23:59:38 +00:00
Search for method mappings in superclasses during AP run, closes #33
This commit is contained in:
1 parent
a012596e98
commit
fae89c3eb7
3 files changed
+55
-3
No files matched your search
@@ -468,14 +468,14 @@ class AnnotatedMixin {
|
||||
}
|
||||
remappedReference = MemberInfo.fromSrgField(obfField, targetMember.desc);
|
||||
} else {
|
||||
MethodData obfMethod = this.mixins.getObfMethod(targetMember.asMethodData());
|
||||
MethodData obfMethod = this.mixins.getObfMethod(targetMember);
|
||||
if (obfMethod == null) {
|
||||
if (targetMember.owner == null || !targetMember.owner.startsWith("java/lang/")) {
|
||||
this.mixins.printMessage(Kind.WARNING, "Cannot find method mapping for @At(" + key + ") '" + target + "'", element, inject);
|
||||
}
|
||||
return;
|
||||
}
|
||||
remappedReference = MemberInfo.fromSrgMethod(obfMethod);
|
||||
remappedReference = targetMember.remapUsing(obfMethod, false);
|
||||
}
|
||||
|
||||
this.mixins.getReferenceMapper().addMapping(this.classRef, target, remappedReference.toString());
|
||||
|
||||
Reference in new issue
Block a user