From 556646ff637b4334ae8b7f242c7249c6ee826d1c Mon Sep 17 00:00:00 2001 From: Yenil <85287520+ImYenil@users.noreply.github.com> Date: Thu, 14 Mar 2024 01:27:05 +0900 Subject: [PATCH] Update CategoryContent.java Fixed a bug where quick buy lore was not displayed properly due to incorrect conditions --- .../com/andrei1058/bedwars/shop/main/CategoryContent.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bedwars-plugin/src/main/java/com/andrei1058/bedwars/shop/main/CategoryContent.java b/bedwars-plugin/src/main/java/com/andrei1058/bedwars/shop/main/CategoryContent.java index 982615e54..c4ceaec98 100644 --- a/bedwars-plugin/src/main/java/com/andrei1058/bedwars/shop/main/CategoryContent.java +++ b/bedwars-plugin/src/main/java/com/andrei1058/bedwars/shop/main/CategoryContent.java @@ -282,11 +282,7 @@ public ItemStack getItemStack(Player player, ShopCache shopCache) { for (String s : Language.getList(player, itemLorePath)) { if (s.contains("{quick_buy}")) { if (hasQuick) { - if (ShopIndex.getIndexViewers().contains(player.getUniqueId())) { - s = getMsg(player, Messages.SHOP_LORE_QUICK_REMOVE); - } else { - continue; - } + s = getMsg(player, Messages.SHOP_LORE_QUICK_REMOVE); } else { s = getMsg(player, Messages.SHOP_LORE_QUICK_ADD); }