mirror of
https://github.com/Auxilor/EcoArmor.git
synced 2025-12-27 02:49:22 +00:00
Added flags to display
This commit is contained in:
@@ -53,6 +53,7 @@ class ArmorDisplay(plugin: EcoPlugin) : DisplayModule(plugin, DisplayPriority.LO
|
||||
|
||||
val tier = ArmorUtils.getTier(meta) ?: return
|
||||
val lore = FastItemStack.wrap(slotStack).lore.map { it.replace("%tier%", tier.displayName) }.toMutableList()
|
||||
slotMeta.addItemFlags(*slotMeta.itemFlags.toTypedArray())
|
||||
|
||||
if (meta.hasLore()) {
|
||||
lore.addAll(fis.lore)
|
||||
|
||||
Reference in New Issue
Block a user