mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 03:22:17 +00:00
Fix bad stack calc in injector, fixes SpongePowered/SpongeVanilla#163
This commit is contained in:
1 parent
01bf2d445b
commit
584f14877e
1 file changed
+1
-1
@@ -470,7 +470,7 @@ public class CallbackInjector extends Injector {
|
||||
ASMHelper.loadArgs(callback.target.arguments, callback, this.isStatic ? 0 : 1);
|
||||
|
||||
// Push the callback info onto the stack
|
||||
callback.add(new VarInsnNode(Opcodes.ALOAD, callback.marshallVar));
|
||||
callback.add(new VarInsnNode(Opcodes.ALOAD, callback.marshallVar), false, true);
|
||||
|
||||
// (Maybe) push the locals onto the stack
|
||||
if (callback.canCaptureLocals) {
|
||||
|
||||
Reference in new issue
Block a user