mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-12-21 15:09:23 +01:00
small fixes
This commit is contained in:
parent
82a885353e
commit
208667d6fc
1 changed files with 3 additions and 3 deletions
|
@ -95,11 +95,11 @@ public class CraftingModuleItem extends ModuleItem {
|
|||
s -> network.requestExistingItem(tile.getBlockPos(), dest.getLeft(), null, dest.getRight(), equalityTypes)).copy();
|
||||
// dest may be able to accept less than toRequest, so the amount that remains there also needs to be taken into account
|
||||
remain.grow(toRequest.getCount() - dest.getRight().getCount());
|
||||
if (remain.getCount() != dest.getRight().getCount()) {
|
||||
if (remain.getCount() != toRequest.getCount()) {
|
||||
ingredient.ifLeft(network::resolveNetworkLock);
|
||||
craft.ingredientsToRequest.removeFirst();
|
||||
if (!remain.isEmpty())
|
||||
craft.ingredientsToRequest.add(craft.ingredientsToRequest.indexOf(ingredient), Either.right(remain));
|
||||
craft.ingredientsToRequest.remove(ingredient);
|
||||
craft.ingredientsToRequest.addFirst(Either.right(remain));
|
||||
craft.travelingIngredients.add(toRequest.copyWithCount(toRequest.getCount() - remain.getCount()));
|
||||
craft.inProgress = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue