Immersive Engineering

Immersive Engineering

134M Downloads

[1.12.2] Squeezer/Fermenter JEI only shows first entry of oredict

H-QueerCoded opened this issue ยท 1 comments

commented

Description of the issue:

When registering a CraftTweaker squeezer or fermenter recipe with an oredict, JEI only shows the first item from the oredict, rather than a rotating list of items in the oredict. The exact zenscript code I'm using is Squeezer.addRecipe(null, <liquid:plantoil>*40, <ore:listAllseed>, 800); and it just shows wheat seeds. Any item in the list will have the squeezer in its JEI uses, but the recipe will still show wheat seeds.
Example gif

Versions & Modlist

Forge 14.23.5.2847
IE 0.12 - 92
JEI 4.15.0.293
CraftTweaker 4.1.20
full modlist (forced crashlog)

commented

The crusher has proper cycling support in JEI for its inputs, so I was comparing the JEI integration code for it to the code for the squeezer and fermenter. CrusherRecipeCategory.java uses recipeWrapper.getItemIn() to set the input display, while SqueezerRecipeCategory.java and FermenterRecipeCategory.java use ingredients.getInputs(ItemStack.class).get(0).