mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-22 11:53:29 +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());
|
tile.craftIngredientRequests.addAll(ret.getLeft());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ItemStack remain = stack.copy();
|
||||||
|
remain.shrink(resultAmount * toCraft);
|
||||||
|
|
||||||
ItemStack result = stack.copy();
|
ItemStack result = stack.copy();
|
||||||
result.setCount(resultAmount * toCraft);
|
result.shrink(remain.getCount());
|
||||||
tile.craftResultRequests.add(Pair.of(destPipe, result));
|
tile.craftResultRequests.add(Pair.of(destPipe, result));
|
||||||
|
|
||||||
ItemStack remain = stack.copy();
|
|
||||||
remain.shrink(toCraft);
|
|
||||||
return remain;
|
return remain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue