From c707fbd44889d02629b377667588959402bc6547 Mon Sep 17 00:00:00 2001 From: VoidLeech Date: Tue, 12 Dec 2023 19:53:57 +0100 Subject: [PATCH] Fix modded potion recipes using uncraftable potion in automated brewing --- .../create/content/fluids/potion/PotionMixingRecipes.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/fluids/potion/PotionMixingRecipes.java b/src/main/java/com/simibubi/create/content/fluids/potion/PotionMixingRecipes.java index 4d3230eba..c33d8dc2e 100644 --- a/src/main/java/com/simibubi/create/content/fluids/potion/PotionMixingRecipes.java +++ b/src/main/java/com/simibubi/create/content/fluids/potion/PotionMixingRecipes.java @@ -97,7 +97,11 @@ public class PotionMixingRecipes { FluidStack outputFluid = null; for (ItemStack stack : supportedContainerStacks) { if (input.test(stack)) { - FluidStack inputFluid = PotionFluidHandler.getFluidFromPotionItem(stack); + ItemStack[] stacks = input.getItems(); + if (stacks.length == 0){ + continue; + } + FluidStack inputFluid = PotionFluidHandler.getFluidFromPotionItem(stacks[0]); if (outputFluid == null) { outputFluid = PotionFluidHandler.getFluidFromPotionItem(output); }