Skip to content

Commit

Permalink
Fix displaying sequenced assembly with multiple spout steps in REI (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh authored May 21, 2024
1 parent a1a2bf2 commit 506c383
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ public int addFluidIngredients(SequencedRecipe<?> recipe, List<Widget> widgets,
FluidIngredient fluidIngredient = recipe.getRecipe()
.getFluidIngredients()
.get(0);
Slot fluidSlot = basicSlot(x + 4, 15, origin).markInput().entries(EntryIngredients.of(CreateRecipeCategory.convertToREIFluid(fluidIngredient.getMatchingFluidStacks().get(index))));
// Always pass 0 to the fluid ingredient get, because spouting only supports one fluid per step
// and the passed index to this method will produce an out-of-bounds exception if used
Slot fluidSlot = basicSlot(x + 4, 15, origin).markInput().entries(EntryIngredients.of(CreateRecipeCategory.convertToREIFluid(fluidIngredient.getMatchingFluidStacks().get(0))));
CreateRecipeCategory.setFluidRenderRatio(fluidSlot);
setFluidTooltip(fluidSlot);
widgets.add(fluidSlot);
Expand Down

0 comments on commit 506c383

Please sign in to comment.