mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-09 07:45:28 +02:00
Check hasItemMeta
This commit is contained in:
@@ -650,6 +650,10 @@ public class ItemUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isMcMMOItem(ItemStack is) {
|
public static boolean isMcMMOItem(ItemStack is) {
|
||||||
|
if (!is.hasItemMeta()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
ItemMeta itemMeta = is.getItemMeta();
|
ItemMeta itemMeta = is.getItemMeta();
|
||||||
if (itemMeta.hasLore()) {
|
if (itemMeta.hasLore()) {
|
||||||
List<String> itemLore = itemMeta.getLore();
|
List<String> itemLore = itemMeta.getLore();
|
||||||
|
Reference in New Issue
Block a user