Fixed damage reduction rate of vanilla armor incorrectly scaling with armor's current durability.

This commit is contained in:
Lex Manos 2015-05-26 23:34:32 -07:00
parent f9b1e4e23b
commit 3331d2a496
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ public interface ISpecialArmor
else if (stack.getItem() instanceof ItemArmor && !source.isUnblockable())
{
ItemArmor armor = (ItemArmor)stack.getItem();
prop = new ArmorProperties(0, armor.damageReduceAmount / 25D, armor.getMaxDamage() + 1 - stack.getItemDamage());
prop = new ArmorProperties(0, armor.damageReduceAmount / 25D, Integer.MAX_VALUE);
}
if (prop != null)
{