Describe the bug:
The knightmetal shield grants 4 armor every time it gets changed (e.g. when it recharges) or equipped. This armor does not get taken off when the shield is unequipped, only on relog.
To Reproduce:
Equip the knightmetal shield
Unequip the knightmetal shield
Expected behavior:
Equipping the shield only grants armor once, when equipped, then removes the armor when unequipped.
General Information
Describe the bug: The knightmetal shield grants 4 armor every time it gets changed (e.g. when it recharges) or equipped. This armor does not get taken off when the shield is unequipped, only on relog.
To Reproduce:
Expected behavior: Equipping the shield only grants armor once, when equipped, then removes the armor when unequipped.
Environment Versions
Superior shields 1.18.2-2.0.5
Additional Information
Additional context: https://github.com/MysticMods/SuperiorShields/blob/b88c29475fceb2c9ef39c19580588d09aae8ce52/src/main/java/epicsquid/superiorshields/item/KnightmetalShieldItem.java#L23 The UUID here should only be generated once, i.e. you can use an online UUID generator and call UUID.fromString(yourGeneratedUUID);