mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-27 04:25:21 +01:00
Check if material is AIR.
This commit is contained in:
parent
8d20e89a5f
commit
e729c9455c
@ -411,6 +411,9 @@ public class UltimateStacker extends SongodaPlugin {
|
||||
|
||||
public static void updateItemMeta(Item item, ItemStack itemStack, int newAmount) {
|
||||
Material material = itemStack.getType();
|
||||
if (material == Material.AIR)
|
||||
return;
|
||||
|
||||
String name = TextUtils.convertToInvisibleString("IS") + Methods.compileItemName(itemStack, newAmount);
|
||||
|
||||
boolean blacklisted = isMaterialBlacklisted(itemStack);
|
||||
|
Loading…
Reference in New Issue
Block a user