Fix reinforced tools not repairing with moss

This commit is contained in:
Bernhard Bonigl committed 2015-02-07 08:59:57 +01:00
1 parent ea8f1fe0c0
commit 3cd211e9f4
1 file changed
+1 -1
@@ -361,7 +361,7 @@ public class AbilityHelper
// 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"))