mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-20 12:19:58 +00:00
Make ASM fix backwards compatible
This commit is contained in:
1 parent
f677fb51f6
commit
01da5fd544
1 file changed
+2
-3
@@ -440,9 +440,8 @@ object ASMMixinCompiler
|
||||
case INVOKEVIRTUAL =>
|
||||
if (minsn.owner.equals(cnode.name)) {
|
||||
if (methodSigs.contains(minsn.name + minsn.desc)) {//call the interface method
|
||||
minsn.setOpcode(INVOKEINTERFACE)
|
||||
minsn.itf = true
|
||||
}else {
|
||||
replace(new MethodInsnNode(INVOKEINTERFACE, minsn.owner, minsn.name, minsn.desc))
|
||||
} else {
|
||||
//cast to parent class and call
|
||||
val mType = Type.getMethodType(minsn.desc)
|
||||
val instanceEntry = stack.peek(width(mType.getArgumentTypes))
|
||||
|
||||
Reference in new issue
Block a user