diff --git a/src/main/java/tconstruct/library/armor/ArmorCore.java b/src/main/java/tconstruct/library/armor/ArmorCore.java index 66df49ff..c5c5b3a1 100644 --- a/src/main/java/tconstruct/library/armor/ArmorCore.java +++ b/src/main/java/tconstruct/library/armor/ArmorCore.java @@ -17,6 +17,7 @@ import net.minecraftforge.common.ISpecialArmor; import tconstruct.library.TConstructRegistry; import tconstruct.library.modifier.*; import tconstruct.library.tools.ToolCore; +import tconstruct.tools.entity.FancyEntityItem; public abstract class ArmorCore extends ItemArmor implements ISpecialArmor, IModifyable { @@ -427,4 +428,15 @@ public abstract class ArmorCore extends ItemArmor implements ISpecialArmor, IMod displayToolTips = false; } } + + /* Prevent armor from dying */ + public boolean hasCustomEntity (ItemStack stack) + { + return true; + } + + public Entity createEntity (World world, Entity location, ItemStack itemstack) + { + return new FancyEntityItem(world, location, itemstack); + } } \ No newline at end of file