mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-02-05 01:45:00 +01:00
Merge pull request #5866 from VoidLeech/mc1.18/fix-uncraftable-modded-potion-fluids
Fix Automated Brewing of Modded Potions
This commit is contained in:
commit
e52b59097e
1 changed files with 7 additions and 1 deletions
|
@ -97,10 +97,16 @@ 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]);
|
||||
inputFluid.setAmount(1000);
|
||||
if (outputFluid == null) {
|
||||
outputFluid = PotionFluidHandler.getFluidFromPotionItem(output);
|
||||
}
|
||||
outputFluid.setAmount(1000);
|
||||
mixingRecipes.add(createRecipe("potion_mixing_modded_" + recipeIndex++, ingredient, inputFluid, outputFluid));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue