File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
forge/src/main/java/com/railwayteam/railways/forge/asm Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 9
9
* 1. Load's the "Level" parameter to stack
10
10
* 2. It invokes the utility method
11
11
* 3. Adds DUP instruction
12
- * 4. It creates a label to go back to the DUP instruction which holds the method call
12
+ * 4. It creates a label to go be able go jump to the original code
13
13
* 5. It then adds a Jump instruction to go to the end of the method/return default if the method call result is null
14
14
* 6. If it's not null, aka hasn't jumped to the end, then it returns the value of the called method
15
15
* 7. Places a label and POP so that the original code could be called
@@ -29,7 +29,7 @@ public static void processNode(ClassNode classNode) {
29
29
InsnList newInstructions = new InsnList ();
30
30
31
31
// Load parameter level to stack
32
- newInstructions .add (new VarInsnNode (Opcodes .ALOAD , 0 )); // ALOAD 0
32
+ newInstructions .add (new VarInsnNode (Opcodes .ALOAD , 0 ));
33
33
34
34
// Call createNewGuiContraptionWorld method
35
35
newInstructions .add (new MethodInsnNode (
You can’t perform that action at this time.
0 commit comments