Improve DisplayItem protection checker.

Former-commit-id: 4d700f306434704de9f4e531175493117862a2b2 [formerly c0d24bb5a29522ae13a435fa984fb640ae896344]
Former-commit-id: e156ef7aceb0c905c4d48457e6b4d4f496c96bab
This commit is contained in:
Ghost_chu committed 2019-03-15 15:29:52 +08:00
1 parent c998387bd0
commit bfcd425cfa
1 file changed
+1 -1
@@ -103,7 +103,7 @@ public class DisplayItem {
if(itemStack.getItemMeta().hasLore()) {
List<String> lores = itemStack.getItemMeta().getLore();
for (String singleLore : lores) {
if (singleLore.equals("QuickShop DisplayItem")) {
if (singleLore.equals("QuickShop DisplayItem")||singleLore.contains("QuickShop DisplayItem")) {
return true;
}
}