Merge remote-tracking branch 'mumfrey/0.8' into fabric-0.8

This commit is contained in:
asie committed 2019-09-16 19:33:28 +02:00
commit d4dd9be932
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ plugin developed by [DemonWav](https://github.com/demonwav).
<ul>
<li><b>Updated to ASM 6.2</b></li>
<li><b>Support for <a href="https://github.com/cpw/modlauncher/">
ModLauncher</a></li>
ModLauncher</a></b></li>
<li>Added recognition for Java 9 and 10</li>
<li>Support for <em>ForgeGradle 3+</em> tsrg obfuscation tables
<li>Configs can now inherit from other configs</li>
@@ -76,7 +76,7 @@ public class AccessorGeneratorMethodProxy extends AccessorGenerator {
}
Bytecode.loadArgs(this.argTypes, method.instructions, this.targetIsStatic ? 0 : 1);
boolean isPrivate = Bytecode.hasFlag(this.targetMethod, Opcodes.ACC_PRIVATE);
int opcode = this.targetIsStatic ? (isPrivate ? Opcodes.INVOKESPECIAL : Opcodes.INVOKEVIRTUAL) : Opcodes.INVOKESTATIC;
int opcode = this.targetIsStatic ? Opcodes.INVOKESTATIC : (isPrivate ? Opcodes.INVOKESPECIAL : Opcodes.INVOKEVIRTUAL);
method.instructions.add(new MethodInsnNode(opcode, this.info.getClassNode().name, this.targetMethod.name, this.targetMethod.desc, false));
method.instructions.add(new InsnNode(this.returnType.getOpcode(Opcodes.IRETURN)));
return method;