mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-12-22 15:39:22 +01:00
fixed some crafting module miscalculations
This commit is contained in:
parent
4274f4b36b
commit
b25ad992e6
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue