Fix tools not repairing if the tool is broken but has taken no damage
@@ -8,7 +8,6 @@ import net.minecraft.client.Minecraft;
import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
@@ -349,7 +348,7 @@ public abstract class TinkersItem extends Item implements ITinkerable, IModifyab
// now do it all over again with the real items, to actually repair \o/
ItemStack item = repairable.copy();
- while(item.getItemDamage() > 0) {
+ while(item.getItemDamage() > 0 || ToolHelper.isBroken(item)) {
int amount = calculateRepairAmount(materials, repairItems);
// nothing to repair with, we're therefore done
