From ce2b8deef98f7ad1af1df2fc29c161febdb9e065 Mon Sep 17 00:00:00 2001 From: Len <40720638+destro174@users.noreply.github.com> Date: Thu, 6 Aug 2026 08:15:20 -0500 Subject: [PATCH] Add amount of shops to tooltip in SearchShopsDialog --- .../java/com/alttd/playershops/dialog/SearchShopsDialog.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/alttd/playershops/dialog/SearchShopsDialog.java b/src/main/java/com/alttd/playershops/dialog/SearchShopsDialog.java index 7ca72d8..6b5e383 100644 --- a/src/main/java/com/alttd/playershops/dialog/SearchShopsDialog.java +++ b/src/main/java/com/alttd/playershops/dialog/SearchShopsDialog.java @@ -59,6 +59,11 @@ public class SearchShopsDialog extends AbstractDialog { for (Map.Entry> entry : PlayerShops.getInstance().getShopHandler().shopByMaterial().entrySet()) { actions.add(ActionButton.builder(ShopUtil.spriteComponent(entry.getKey())) + .tooltip( + MiniMessage.miniMessage().deserialize( + entry.getValue().size() + " Shops" + ) + ) .action( DialogAction.customClick((view, audience) -> { if (!(audience instanceof Player player)) {