Fix: Resolve method references not being correctly remapped in initializers.

This commit is contained in:
LlamaLad7 authored and modmuss50 committed 2023-05-04 09:16:24 +01:00
1 parent 4d326c55ae
commit 755462cd1e
1 file changed
+2 -3
@@ -875,9 +875,8 @@ public class MixinTargetContext extends ClassContext implements IMixinContext {
}
private void updateBinding(MethodNode method, MemberRef methodRef, Traversal traversal) {
if (Constants.CTOR.equals(method.name)
|| methodRef.getOwner().equals(this.getTarget().getClassRef())
|| this.getTarget().getClassRef().startsWith("<")) {
if (Constants.CTOR.equals(methodRef.getName())
|| methodRef.getOwner().equals(this.getTarget().getClassRef())) {
return;
}