Post-merge fixups
In particular, act as if a spellbook has been discovered during tooltip generation if player is null. This allows JEI to index all the spell names.
This commit is contained in:
@@ -139,14 +139,14 @@ public class ItemWizardArmour extends ItemArmor implements ISpecialArmor {
|
||||
// Do note however that a texture pack could override this.
|
||||
if(entity instanceof EntityLivingBase && ((EntityLivingBase)entity).isInvisible()
|
||||
&& !entity.getEntityData().getBoolean(Petrify.NBT_KEY))
|
||||
return "wizardry:textures/armour/invisible_armour.png";
|
||||
return "ebwizardry:textures/armour/invisible_armour.png";
|
||||
|
||||
if(slot == EntityEquipmentSlot.LEGS)
|
||||
return this.element == null ? "wizardry:textures/armour/wizard_armour_legs.png"
|
||||
: "wizardry:textures/armour/wizard_armour_" + this.element.getUnlocalisedName() + "_legs.png";
|
||||
return this.element == null ? "ebwizardry:textures/armour/wizard_armour_legs.png"
|
||||
: "ebwizardry:textures/armour/wizard_armour_" + this.element.getUnlocalisedName() + "_legs.png";
|
||||
|
||||
return this.element == null ? "wizardry:textures/armour/wizard_armour.png"
|
||||
: "wizardry:textures/armour/wizard_armour_" + this.element.getUnlocalisedName() + ".png";
|
||||
return this.element == null ? "ebwizardry:textures/armour/wizard_armour.png"
|
||||
: "ebwizardry:textures/armour/wizard_armour_" + this.element.getUnlocalisedName() + ".png";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user