Skip to content

Commit 1bea4a4

Browse files
committed
Merge remote-tracking branch 'origin/1.19/dev' into 1.19/dev
2 parents 69f8589 + c4de0ab commit 1bea4a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

forge/src/main/java/com/railwayteam/railways/forge/asm/ContainerLevelAccessASM.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* 1. Load's the "Level" parameter to stack
1010
* 2. It invokes the utility method
1111
* 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
1313
* 5. It then adds a Jump instruction to go to the end of the method/return default if the method call result is null
1414
* 6. If it's not null, aka hasn't jumped to the end, then it returns the value of the called method
1515
* 7. Places a label and POP so that the original code could be called
@@ -29,7 +29,7 @@ public static void processNode(ClassNode classNode) {
2929
InsnList newInstructions = new InsnList();
3030

3131
// Load parameter level to stack
32-
newInstructions.add(new VarInsnNode(Opcodes.ALOAD, 0)); // ALOAD 0
32+
newInstructions.add(new VarInsnNode(Opcodes.ALOAD, 0));
3333

3434
// Call createNewGuiContraptionWorld method
3535
newInstructions.add(new MethodInsnNode(

0 commit comments

Comments
 (0)