fixed some crafting module miscalculations

This commit is contained in:
Ell 2020-11-16 23:15:35 +01:00
parent 4274f4b36b
commit b25ad992e6

View file

@ -182,12 +182,13 @@ public class CraftingModuleItem extends ModuleItem {
tile.craftIngredientRequests.addAll(ret.getLeft());
}
ItemStack remain = stack.copy();
remain.shrink(resultAmount * toCraft);
ItemStack result = stack.copy();
result.setCount(resultAmount * toCraft);
result.shrink(remain.getCount());
tile.craftResultRequests.add(Pair.of(destPipe, result));
ItemStack remain = stack.copy();
remain.shrink(toCraft);
return remain;
}