fixed ItemUtils in 1.13+

This commit is contained in:
坏黑 2019-06-11 13:44:26 +08:00
parent 00a4f61a68
commit 3c47b40116

View File

@ -142,7 +142,7 @@ public class ItemUtils {
} }
public static boolean isNull(ItemStack item) { public static boolean isNull(ItemStack item) {
return item == null || item.getType() == Material.AIR; return item == null || item.getType().equals(Material.AIR);
} }
public static boolean isName(ItemStack i, String a) { public static boolean isName(ItemStack i, String a) {