You can mutate crafting recipes in the Logic Programmer /w JEI
t0suj4 opened this issue ยท 1 comments
Issue type:
- ๐ Bug
Short description:
When you add the recipe to the Logic Programmer Recipe grid via JEI you can remove ingredients from the actual recipe because it's working with the recipe reference, not the copy! When you remove the items the final result is a recipe without valid ingredients which in the end defaults to ItemStack.EMPTY. You can then use any crafting table with cleared grid to craft unlimited amount of any craftable items. I've tested it only on crafting table results.
Offending line here (needs .copy(), probably):
I did not test it with liquids nor RF, changing output item have no influence.
Steps to reproduce the problem:
- Open Logic Programmer
- Select Recipe
- Select desired item in JEI with crafting table recipe
- Clear any ingredient that does not use ore dictionary from the recipe
- Close Logic Programmer
- Open Crafting Table
- Put any item in the Table
- Clear the grid
- Unlimited free crafting
- ???
- Profit
I've tested it only on Iron, Diamond block and piston recipes. With piston, I've removed only Iron Ingot from the recipe, I could then craft Pistons without Iron Ingots.
Expected behaviour:
The item recipe should not get modified!
Versions:
- This mod: 1.10.3
- Minecraft: 1.16.5
- Forge: 36.2.8
I've tested it in OceanBlock modpack, without isolating anything.