Fixed pets gui again

This commit is contained in:
Auxilor
2023-10-07 17:57:00 +01:00
parent 82decbb2cb
commit a31b6a2a4c

View File

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