mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-23 18:45:39 +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) {
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user