don't show every reuse of a tool that takes damage in the preview

This commit is contained in:
way2muchnoise
2016-10-23 16:34:24 +02:00
parent ce39f95d36
commit 1ddc958e5f

View File

@@ -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);