mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Improve DisplayItem protection checker.
Former-commit-id: 4d700f306434704de9f4e531175493117862a2b2 [formerly c0d24bb5a29522ae13a435fa984fb640ae896344] Former-commit-id: e156ef7aceb0c905c4d48457e6b4d4f496c96bab
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user