From aefd4b063e1c737a54d2b6d5af245aaefb102f3e Mon Sep 17 00:00:00 2001 From: TropheusJ Date: Fri, 19 Apr 2024 15:51:17 -0400 Subject: [PATCH] extra safety fix #1439 --- FABRIC_CHANGELOG.txt | 3 ++- .../simibubi/create/compat/emi/recipes/CreateEmiRecipe.java | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/FABRIC_CHANGELOG.txt b/FABRIC_CHANGELOG.txt index 2acfbadeac..3d55c1fce8 100644 --- a/FABRIC_CHANGELOG.txt +++ b/FABRIC_CHANGELOG.txt @@ -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) diff --git a/src/main/java/com/simibubi/create/compat/emi/recipes/CreateEmiRecipe.java b/src/main/java/com/simibubi/create/compat/emi/recipes/CreateEmiRecipe.java index c29d34c8c0..0d792c0e68 100644 --- a/src/main/java/com/simibubi/create/compat/emi/recipes/CreateEmiRecipe.java +++ b/src/main/java/com/simibubi/create/compat/emi/recipes/CreateEmiRecipe.java @@ -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 fluids = ingredient.getMatchingFluidStacks(); + if (!fluids.isEmpty()) { + input.add(fluidStack(fluids.get(0))); + } } for (ItemStack stack : basin.getRollableResultsAsItemStacks()) { output.add(EmiStack.of(stack));