Fix NPE in shopByMaterial
This commit is contained in:
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<>());
|
||||
|
||||
Reference in new issue
Block a user