NuclearW пре 12 година
родитељ
комит
12709bcd7f
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      src/main/java/com/gmail/nossr50/util/ItemUtils.java

+ 4 - 0
src/main/java/com/gmail/nossr50/util/ItemUtils.java

@@ -650,6 +650,10 @@ public class ItemUtils {
     }
 
     public static boolean isMcMMOItem(ItemStack is) {
+        if (!is.hasItemMeta()) {
+            return false;
+        }
+
         ItemMeta itemMeta = is.getItemMeta();
         if (itemMeta.hasLore()) {
             List<String> itemLore = itemMeta.getLore();