Skip to content

Commit

Permalink
Fix reinforced tools not repairing with moss
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Feb 7, 2015
1 parent ea8f1fe commit 3cd211e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/library/tools/AbilityHelper.java
Expand Up @@ -361,7 +361,7 @@ public static void damageTool (ItemStack stack, int dam, NBTTagCompound tags, En

// calculate in reinforced/unbreaking
int reinforced = 0;
if(tags.hasKey("InfiTool"))
if(tags.hasKey("InfiTool") && dam > 0) // unbreaking only affects damage, not healing
{
NBTTagCompound toolTags = tags.getCompoundTag("InfiTool");
if(toolTags.hasKey("Unbreaking"))
Expand Down

0 comments on commit 3cd211e

Please sign in to comment.