Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Changing Armor's damage reducing properties back to pre patch #3316

Open
wants to merge 1 commit into
base: stable-7
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ private static ISpecialArmor.ArmorProperties getProperties(final EntityLivingBas
prop = armor.getProperties(base, armorStack, damageSource, damage, index).copy();
} else if (armorStack.getItem() instanceof ItemArmor && !damageSource.isUnblockable()) {
final ItemArmor armor = (ItemArmor) armorStack.getItem();
prop = new ISpecialArmor.ArmorProperties(0, 0, Integer.MAX_VALUE);
prop = new ISpecialArmor.ArmorProperties(0, armor.damageReduceAmount / 25D, Integer.MAX_VALUE);
prop.Armor = armor.damageReduceAmount;
prop.Toughness = armor.toughness;
}
Expand Down