From a31b6a2a4ce825583bb88c7debd4e4e7e9cd253b Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 7 Oct 2023 17:57:00 +0100 Subject: [PATCH] Fixed pets gui again --- .../src/main/kotlin/com/willfp/ecopets/pets/Pet.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/pets/Pet.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/pets/Pet.kt index b4a3b14..7887d69 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/pets/Pet.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/pets/Pet.kt @@ -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() }