9
0
mirror of https://github.com/Auxilor/EcoArmor.git synced 2025-12-29 20:09:16 +00:00

Fixed display

This commit is contained in:
Auxilor
2022-05-08 16:17:00 +01:00
parent 1be9ec472a
commit 65a847288c

View File

@@ -62,14 +62,16 @@ class ArmorDisplay(plugin: EcoPlugin) : DisplayModule(plugin, DisplayPriority.LO
}
if (player != null) {
lore.add("")
lore.addAll(
if (ArmorUtils.isAdvanced(meta)) {
set.advancedHolder.getNotMetLines(player)
} else {
set.regularHolder.getNotMetLines(player)
}
)
val lines = if (ArmorUtils.isAdvanced(meta)) {
set.advancedHolder.getNotMetLines(player)
} else {
set.regularHolder.getNotMetLines(player)
}
if (lines.isNotEmpty()) {
lore.add("")
lore.addAll(lines)
}
}
if (this.plugin.configYml.getBool("update-item-names")) {