diff --git a/src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java b/src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java index cc7567916..6e6ba3092 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java @@ -95,11 +95,14 @@ public interface DisplayItem { Gson gson = new Gson(); for (String lore : lores) { try { + if (!lore.startsWith("{")) { + continue; + } ShopProtectionFlag shopProtectionFlag = gson.fromJson(lore, ShopProtectionFlag.class); if (shopProtectionFlag == null) { continue; } - if (shopProtectionFlag.getMark() == null) { + if (!shopProtectionFlag.getMark().equals(ShopProtectionFlag.getDefaultMark())) { continue; } if (shopProtectionFlag.getShopLocation().equals(shop.getLocation().toString())) {