Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellpeck committed Dec 5, 2024
1 parent 82a8853 commit 208667d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ public void tick(ItemStack module, PipeBlockEntity tile) {
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;
}
Expand Down

0 comments on commit 208667d

Please sign in to comment.