Fixed the Living Armour so that it wouldn't get damaged by self-sacrificing when you had upgrades that mitigate unblockable sources.
This commit is contained in:
parent
e363ba8ffb
commit
b684aebdaa
2 changed files with 6 additions and 0 deletions
|
@ -217,6 +217,11 @@ public class ItemLivingArmour extends ItemArmor implements ISpecialArmor, IMeshP
|
|||
{
|
||||
if (this == ModItems.livingArmourChest)
|
||||
{
|
||||
if (source.isUnblockable())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (damage > this.getMaxDamage(stack) - this.getDamage(stack))
|
||||
{
|
||||
//TODO: Syphon a load of LP.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue