Fix Armor-Moss-Modifier not updating display, so people stop complaining about it not working.

This commit is contained in:
Bernhard Bonigl committed 2014-10-05 12:18:21 +02:00
1 parent ed87da1598
commit 03755be47d
1 file changed
+5 -2
@@ -23,8 +23,11 @@ public class ActiveTinkerArmor extends ActiveArmorMod
if (TConstruct.random.nextInt(check) < chance)
{
int current = tag.getInteger("Damage");
if (current > 0)
tag.setInteger("Damage", current - 1);
if (current > 0) {
current--;
tag.setInteger("Damage", current);
itemStack.setItemDamage(current);
}
}
}
if (type == ArmorPart.Head)