Fixed damage reduction rate of vanilla armor incorrectly scaling with armor's current durability.
This commit is contained in:
parent
f9b1e4e23b
commit
3331d2a496
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ public interface ISpecialArmor
|
||||||
else if (stack.getItem() instanceof ItemArmor && !source.isUnblockable())
|
else if (stack.getItem() instanceof ItemArmor && !source.isUnblockable())
|
||||||
{
|
{
|
||||||
ItemArmor armor = (ItemArmor)stack.getItem();
|
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)
|
if (prop != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue