mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fixed damage reduction rate of vanilla armor incorrectly scaling with armor's current durability.
This commit is contained in:
1 parent
f9b1e4e23b
commit
3331d2a496
1 file changed
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user