mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 11:59:14 +00:00
Fix Armor-Moss-Modifier not updating display, so people stop complaining about it not working.
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user