Fix NPE in shopByMaterial

This commit is contained in:
Len committed 2026-10-18 08:28:07 -05:00
1 parent b436cec480
commit 1b4e68d07c
1 file changed
+3
@@ -217,6 +217,9 @@ public class ShopHandler {
if (!shop.isInitialized()) {
continue;
}
if (shop.getItemStack() == null) {
continue;
}
Material material = shop.getShopItemType();
List<PlayerShop> shopList = shopByMaterialTreeSet.computeIfAbsent(material, v -> new ArrayList<>());