Skip to content

Commit

Permalink
fix ingredient amount being ignored in non EmiStack instance (#7874)
Browse files Browse the repository at this point in the history
TagEmiIngredient wrap the amount in its own field, and the EmiStacks its
contains don't have the amount data. It results in wrong amount of items
being transferred to pattern terminal
  • Loading branch information
GlodBlock authored May 20, 2024
1 parent 97f1192 commit 327347e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ private static List<GenericStack> of(EmiIngredient emiIngredient) {
.stream()
.map(EmiStackHelper::toGenericStack)
.filter(Objects::nonNull)
.map(x -> new GenericStack(x.what(), emiIngredient.getAmount()))
.toList();
}
}

0 comments on commit 327347e

Please sign in to comment.