mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-27 17:52:56 +00:00
Fix locals calculation in accessor generator
This commit is contained in:
1 parent
a7df0a3eb9
commit
5ac85cd931
1 file changed
+1
-1
@@ -67,7 +67,7 @@ public class AccessorGeneratorMethodProxy extends AccessorGenerator {
|
||||
|
||||
@Override
|
||||
public MethodNode generate() {
|
||||
int size = Bytecode.getArgsSize(this.argTypes) + this.returnType.getSize();
|
||||
int size = Bytecode.getArgsSize(this.argTypes) + this.returnType.getSize() + (this.isInstanceMethod ? 1 : 0);
|
||||
MethodNode method = this.createMethod(size, size);
|
||||
if (this.isInstanceMethod) {
|
||||
method.instructions.add(new VarInsnNode(Opcodes.ALOAD, 0));
|
||||
|
||||
Reference in new issue
Block a user