[1.8] Thorns Enchant causes Sentient and Living Armour to take damage
Pitfallingpat opened this issue ยท 2 comments
Version 1.8.9-2.0.0.0-15
Same as title, having the thorns enchantment on either chest armours is causing them to take durability damage when you get hit (and thorns does damage back?). The rest of the set is unbreakable as far as I can tell, but thorns is causing problems, and the chest piece is where all the set upgrades is saved for the Living Armour.
Oh boy. This actually seems like an oversight in Forge.
EnchantmentThorns
is calling ItemStack#damageItem(int, EntityLivingBase);
instead of checking instanceof ISpecialArmor
and then calling ISpecialArmor#damageArmor(EntityLivingBase, ItemStack, DamageSource, int, int)
. Simple enough fix for Forge.
Oh hey Forge fixed this apparently MinecraftForge/MinecraftForge@5d2b843