Fixed pet icon max level lore

This commit is contained in:
Auxilor
2023-10-07 14:09:28 +01:00
parent 58a16a33ec
commit f143a90dd7

View File

@@ -386,12 +386,12 @@ class Pet(
return ItemStackBuilder(base)
.setDisplayName(
plugin.configYml.getFormattedString("gui.pet-info.active.${prefix}lore")
plugin.configYml.getFormattedString("gui.pet-info.name")
.replace("%level%", player.getPetLevel(this).toString())
.replace("%pet%", this.name)
)
.addLoreLines {
injectPlaceholdersInto(plugin.configYml.getStrings("gui.pet-info.active.lore"), player)
injectPlaceholdersInto(plugin.configYml.getStrings("gui.pet-info.${prefix}lore"), player)
}
.build()
}