Check hasItemMeta

This commit is contained in:
NuclearW 2013-03-08 22:20:26 -05:00
parent 0b53f8266a
commit 12709bcd7f

View File

@ -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();