mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 04:32:33 +00:00
Add short-circuit check for TypeInsn remapping, actually closes #21
This commit is contained in:
1 parent
02aa220a36
commit
c4a9fd4823
1 file changed
+5
-1
@@ -264,7 +264,11 @@ public class MixinTargetContext implements IReferenceMapperContext {
|
||||
fieldInsn.owner = this.targetClass.name;
|
||||
}
|
||||
} else if (insn instanceof TypeInsnNode) {
|
||||
this.transformDescriptor((TypeInsnNode)insn);
|
||||
TypeInsnNode typeInsn = (TypeInsnNode)insn;
|
||||
if (typeInsn.desc.equals(this.getClassRef())) {
|
||||
typeInsn.desc = this.targetClass.name;
|
||||
}
|
||||
this.transformDescriptor(typeInsn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user