don't show every reuse of a tool that takes damage in the preview
This commit is contained in:
@@ -115,7 +115,9 @@ public class CraftingTask implements ICraftingTask {
|
|||||||
ItemStack inputStack = ItemHandlerHelper.copyStackWithSize(extraStack, takeQuantity);
|
ItemStack inputStack = ItemHandlerHelper.copyStackWithSize(extraStack, takeQuantity);
|
||||||
actualInputs.add(inputStack.copy());
|
actualInputs.add(inputStack.copy());
|
||||||
input.stackSize -= takeQuantity;
|
input.stackSize -= takeQuantity;
|
||||||
toCraft.add(inputStack);
|
if (!inputStack.isItemStackDamageable() || !inputStack.isItemDamaged()) {
|
||||||
|
toCraft.add(inputStack);
|
||||||
|
}
|
||||||
toInsert.remove(inputStack, true);
|
toInsert.remove(inputStack, true);
|
||||||
} else if (networkStack != null && networkStack.stackSize > 0) {
|
} else if (networkStack != null && networkStack.stackSize > 0) {
|
||||||
int takeQuantity = Math.min(networkStack.stackSize, input.stackSize);
|
int takeQuantity = Math.min(networkStack.stackSize, input.stackSize);
|
||||||
|
|||||||
Reference in New Issue
Block a user