mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 04:32:33 +00:00
Fix supertype resolution for field accesses qualified with super.
This commit is contained in:
1 parent
9d0627e0ad
commit
ebaf45a988
1 file changed
+6
@@ -239,6 +239,12 @@ public class MixinTargetContext implements IReferenceMapperContext {
|
||||
this.transformDescriptor(fieldInsn);
|
||||
if (fieldInsn.owner.equals(this.getClassRef())) {
|
||||
fieldInsn.owner = this.targetClass.name;
|
||||
} else {
|
||||
ClassInfo fieldOwner = ClassInfo.forName(fieldInsn.owner);
|
||||
if (fieldOwner.isMixin()) {
|
||||
ClassInfo actualOwner = this.targetClassInfo.findCorrespondingType(fieldOwner);
|
||||
fieldInsn.owner = actualOwner != null ? actualOwner.getName() : this.targetClass.name;
|
||||
}
|
||||
}
|
||||
} else if (insn instanceof TypeInsnNode) {
|
||||
TypeInsnNode typeInsn = (TypeInsnNode)insn;
|
||||
|
||||
Reference in new issue
Block a user