Made Cloaking device wearable in 1.12. Closes #1314

This commit is contained in:
drcrazy 2017-10-20 01:58:35 +03:00
parent 3f1e7b9111
commit 441ac4887a
4 changed files with 13 additions and 7 deletions

View file

@ -34,9 +34,6 @@ import techreborn.events.TRRecipeHandler;
*/
public class ItemTRArmour extends ItemArmor {
private ArmorMaterial material = ArmorMaterial.LEATHER;
private EntityEquipmentSlot slot = EntityEquipmentSlot.HEAD;
public ItemTRArmour(ArmorMaterial material, EntityEquipmentSlot slot) {
super(material, material.getDamageReductionAmount(slot), slot);
if (slot == EntityEquipmentSlot.HEAD)
@ -48,8 +45,6 @@ public class ItemTRArmour extends ItemArmor {
if (slot == EntityEquipmentSlot.FEET)
setUnlocalizedName(material.name().toLowerCase() + "Boots");
setCreativeTab(TechRebornCreativeTabMisc.instance);
this.material = material;
this.slot = slot;
TRRecipeHandler.hideEntry(this);
}
}