Skip to content

Commit

Permalink
extra safety
Browse files Browse the repository at this point in the history
fix #1439
  • Loading branch information
TropheusJ committed Apr 19, 2024
1 parent 83c417c commit aefd4b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion FABRIC_CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ No formatting, just plain text. CurseForge support for it is terrible.

Change logging starts below:
----------
- added red sandpaper as a polishing workstation to EMI
- added red sandpaper as a polishing workstation to EMI (#1453)
- fix a possible error in EMI init (#1439)
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ public CreateEmiRecipe(EmiRecipeCategory category, T recipe, int width, int heig
input.add(EmiIngredient.of(pair.getFirst(), pair.getSecond().getValue()));
}
for (FluidIngredient ingredient : basin.getFluidIngredients()) {
input.add(fluidStack(ingredient.getMatchingFluidStacks().get(0)));
List<FluidStack> fluids = ingredient.getMatchingFluidStacks();
if (!fluids.isEmpty()) {
input.add(fluidStack(fluids.get(0)));
}
}
for (ItemStack stack : basin.getRollableResultsAsItemStacks()) {
output.add(EmiStack.of(stack));
Expand Down

0 comments on commit aefd4b0

Please sign in to comment.