Made Cloaking device wearable in 1.12. Closes #1314
This commit is contained in:
parent
3f1e7b9111
commit
441ac4887a
4 changed files with 13 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue