Check if material is AIR.

This commit is contained in:
Fernando Pettinelli 2021-10-16 21:25:16 -03:00
parent 8d20e89a5f
commit e729c9455c

View File

@ -411,6 +411,9 @@ public class UltimateStacker extends SongodaPlugin {
public static void updateItemMeta(Item item, ItemStack itemStack, int newAmount) { public static void updateItemMeta(Item item, ItemStack itemStack, int newAmount) {
Material material = itemStack.getType(); Material material = itemStack.getType();
if (material == Material.AIR)
return;
String name = TextUtils.convertToInvisibleString("IS") + Methods.compileItemName(itemStack, newAmount); String name = TextUtils.convertToInvisibleString("IS") + Methods.compileItemName(itemStack, newAmount);
boolean blacklisted = isMaterialBlacklisted(itemStack); boolean blacklisted = isMaterialBlacklisted(itemStack);