Fix modded potion recipes using uncraftable potion in automated brewing

This commit is contained in:
VoidLeech 2023-12-12 19:53:57 +01:00
parent 2201d87da7
commit c707fbd448

View file

@ -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);
}