From ba556ec94203b3a085e915f428e92ca696575b47 Mon Sep 17 00:00:00 2001 From: Altruiis <71913030+Altruiis@users.noreply.github.com> Date: Wed, 16 Feb 2022 18:04:59 -0800 Subject: [PATCH] Addressed requested changes --- src/main/java/tsp/headdb/inventory/InventoryUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tsp/headdb/inventory/InventoryUtils.java b/src/main/java/tsp/headdb/inventory/InventoryUtils.java index 233cb04..14fcc94 100644 --- a/src/main/java/tsp/headdb/inventory/InventoryUtils.java +++ b/src/main/java/tsp/headdb/inventory/InventoryUtils.java @@ -183,7 +183,7 @@ public class InventoryUtils { ItemMeta meta = item.getItemMeta(); meta.setDisplayName(Utils.colorize(localization.getMessage("menu.heads." + category.getName()))); List lore = new ArrayList<>(); - lore.add(Utils.colorize(localization.getMessage("menu.lore").replace("%size%", String.valueOf(HeadAPI.getHeads(category).size())))); + lore.add(Utils.colorize(replace(localization.getMessage("menu.lore"), HeadAPI.getHeads(category).size(), "Main", "None", player))); meta.setLore(lore); item.setItemMeta(meta); inventory.setItem(getUILocation(category.getName(), category.getLocation()), item);