fixed ItemUtils in 1.13+
This commit is contained in:
parent
00a4f61a68
commit
3c47b40116
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user