Skip to content

Commit 36b3070

Browse files
committed
Apply method invocation replacers to Interface methods as well
1 parent 71fce2c commit 36b3070

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/io/github/fabriccompatibilitylayers/modremappingapi/impl/remapper/asm/MRAMethodVisitor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void visitMethodInsn(int opcode, String owner, String name, String descri
9191
skip = true;
9292
}
9393

94-
if (!skip && (opcode == INVOKEVIRTUAL || opcode == INVOKESTATIC)) {
94+
if (!skip && (opcode == INVOKEVIRTUAL || opcode == INVOKESTATIC || opcode == INVOKEINTERFACE)) {
9595
if (infos.METHOD_INVOCATION.containsKey(owner)) {
9696
Map<String, Map<String, VisitorInfos.FullClassMember>> methods = infos.METHOD_INVOCATION.get(owner);
9797

@@ -114,6 +114,7 @@ public void visitMethodInsn(int opcode, String owner, String name, String descri
114114
currentDescriptor = fullClassMember.getDesc();
115115

116116
if (fullClassMember.isStatic() != null) currentOpcode = fullClassMember.isStatic() ? INVOKESTATIC : INVOKEVIRTUAL;
117+
if (isInterface) isInterface = false;
117118
}
118119
}
119120
}

0 commit comments

Comments
 (0)