Skip to content

Commit

Permalink
resolve #190 (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
WaitingIdly authored Jul 10, 2024
1 parent 9f32217 commit 2205255
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public static IngredientStack toIngredientStack(IIngredient ingredient) {
return new IngredientStack(IngredientHelper.toItemStack(ingredient).copy());
}
if (ingredient instanceof OreDictIngredient) {
return new IngredientStack(((OreDictIngredient) ingredient).getOreDict());
return new IngredientStack(((OreDictIngredient) ingredient).getOreDict(), ingredient.getAmount());
}
if (ingredient instanceof FluidStack) {
return new IngredientStack(((FluidStack) ingredient).copy());
}
return new IngredientStack(Arrays.asList(ingredient.getMatchingStacks()));
return new IngredientStack(Arrays.asList(ingredient.getMatchingStacks()), ingredient.getAmount());
}

public static boolean areIngredientsEquals(IngredientStack target, IIngredient other) {
Expand Down

0 comments on commit 2205255

Please sign in to comment.