Skip to content

Commit

Permalink
Fix Armor-Moss-Modifier not updating display, so people stop complain…
Browse files Browse the repository at this point in the history
…ing about it not working.
  • Loading branch information
bonii-xx committed Oct 5, 2014
1 parent ed87da1 commit 03755be
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -23,8 +23,11 @@ public void onArmorTick (World world, EntityPlayer player, ItemStack itemStack,
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)
Expand Down

0 comments on commit 03755be

Please sign in to comment.