A couple of tweaks for backwards compatiblity

This commit is contained in:
Electroblob77
2021-01-17 21:33:09 +00:00
parent 1fcb3a2b1b
commit 07acea53e3
@@ -92,9 +92,18 @@ public class ItemWizardArmour extends ItemArmor implements IWorkbenchItem, IMana
}
public final Element element;
public Element element; // Should be final, but isn't for backwards compatibility
public final ArmourClass armourClass;
@Deprecated // Retained for backwards-compatibility with addons, will be removed in future
public ItemWizardArmour(ArmorMaterial material, int renderIndex, EntityEquipmentSlot armourType, Element element){
super(material, renderIndex, armourType);
this.armourClass = ArmourClass.WIZARD;
this.element = element;
setCreativeTab(WizardryTabs.GEAR);
WizardryRecipes.addToManaFlaskCharging(this);
}
public ItemWizardArmour(ArmourClass armourClass, EntityEquipmentSlot armourType, Element element){
super(armourClass.material, 1, armourType);
this.armourClass = armourClass;