Fixed NPE with DS armor.

This commit is contained in:
CrazyPants committed 2014-05-28 10:53:00 +08:00
1 parent 9a3f0930c9
commit 499cb0bb4d
1 file changed
+1 -1
@@ -172,7 +172,7 @@ public class ItemDarkSteelArmor extends ItemArmor implements IEnergyContainerIte
@Override
public ArmorProperties getProperties(EntityLivingBase player, ItemStack armor, DamageSource source, double damage, int slot) {
if(source.isUnblockable()) {
return null;
return new ArmorProperties(0, 0, armor.getMaxDamage() + 1 - armor.getItemDamage());
}
double damageRatio = damageReduceAmount + (getEnergyStored(armor) > 0 ? getPoweredProtectionIncrease(3 - slot) : 0);
damageRatio /= 25D;