Skip to content

Commit

Permalink
fix alchemist #10612
Browse files Browse the repository at this point in the history
  • Loading branch information
Raycoms committed Jan 25, 2025
1 parent fd422be commit 693625c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,8 @@ private IAIState fillUpBrewingStand()
if (isEmpty(((BrewingStandBlockEntity) entity).getItem(0)) || isEmpty(((BrewingStandBlockEntity) entity).getItem(1))
|| isEmpty(((BrewingStandBlockEntity) entity).getItem(2)))
{
final ItemStack potionStack = currentRecipeStorage.getCleanedInput().get(1).getItemStack();

final ItemStack potionStack = currentRecipeStorage.getCleanedInput().get(0).getItemStack();

final Predicate<ItemStack> potion = stack -> ItemStackUtils.compareItemStacksIgnoreStackSize(potionStack, stack);

Expand Down Expand Up @@ -961,7 +962,7 @@ else if (amountOfPotionInBuilding >= targetCount - amountOfPotionInInv && curren
}
else if (isEmpty(((BrewingStandBlockEntity) entity).getItem(INGREDIENT_SLOT)))
{
final ItemStack ingredientStack = currentRecipeStorage.getCleanedInput().get(0).getItemStack();
final ItemStack ingredientStack = currentRecipeStorage.getCleanedInput().get(1).getItemStack();
final Predicate<ItemStack> ingredient = stack -> ItemStackUtils.compareItemStacksIgnoreStackSize(ingredientStack, stack);
final int ingredientInBrewingStand = getExtendedCount(ingredientStack);
final int targetCount =
Expand Down

0 comments on commit 693625c

Please sign in to comment.