Skip to content

Commit

Permalink
Update RMLTransformer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Ecdcaeb authored Sep 29, 2024
1 parent 4c23224 commit a853b56
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/rml/loader/core/RMLTransformer.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ public static void initForgeTransformers(){
}, (node)->node.getOpcode() == Opcodes.RETURN);
tasks.complete("init");
}else if ("getItemStack".equals(mn.name) || "getItemStackBasic".equals(mn.name)){
mn.instructions.clear();
mn.visitVarInsn(Opcodes.ALOAD, 0);
mn.visitVarInsn(Opcodes.ALOAD, 1);
mn.visitMethodInsn(Opcodes.INVOKESTATIC, "rml/layer/compat/fml/RMLFMLHooks$LateHooks", "getItemStack", "(Lcom/google/gson/JsonObject;Lnet/minecraftforge/common/crafting/JsonContext;)Lnet/minecraft/item/ItemStack;", false);
mn.visitInsn(Opcodes.ARETURN);
// mn.instructions.clear();
// mn.visitVarInsn(Opcodes.ALOAD, 0);
// mn.visitVarInsn(Opcodes.ALOAD, 1);
// mn.visitMethodInsn(Opcodes.INVOKESTATIC, "rml/layer/compat/fml/RMLFMLHooks$LateHooks", "getItemStack", "(Lcom/google/gson/JsonObject;Lnet/minecraftforge/common/crafting/JsonContext;)Lnet/minecraft/item/ItemStack;", false);
// mn.visitInsn(Opcodes.ARETURN);
tasks.complete(mn.name);
}
}
Expand Down

0 comments on commit a853b56

Please sign in to comment.