From 327347e82f0fdb6c71bcdb5aaf64d4c16c3f6f79 Mon Sep 17 00:00:00 2001 From: Yang Xizhi <60341015+GlodBlock@users.noreply.github.com> Date: Mon, 20 May 2024 17:07:32 +0800 Subject: [PATCH] fix ingredient amount being ignored in non EmiStack instance (#7874) 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 --- src/main/java/appeng/integration/modules/emi/EmiStackHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/appeng/integration/modules/emi/EmiStackHelper.java b/src/main/java/appeng/integration/modules/emi/EmiStackHelper.java index 9d5865d17d9..f6946ca1165 100644 --- a/src/main/java/appeng/integration/modules/emi/EmiStackHelper.java +++ b/src/main/java/appeng/integration/modules/emi/EmiStackHelper.java @@ -61,6 +61,7 @@ private static List of(EmiIngredient emiIngredient) { .stream() .map(EmiStackHelper::toGenericStack) .filter(Objects::nonNull) + .map(x -> new GenericStack(x.what(), emiIngredient.getAmount())) .toList(); } }