mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
allow null meta
This commit is contained in:
parent
7249a92bad
commit
6bc28d6b69
@ -26,8 +26,12 @@ public final class ItemStackWrapper extends ItemStack {
|
||||
|
||||
public ItemStackWrapper(ItemStack item) {
|
||||
super(item.getType());
|
||||
meta = item.getItemMeta();
|
||||
hasItemMeta = item.hasItemMeta();
|
||||
if (hasItemMeta) {
|
||||
meta = item.getItemMeta();
|
||||
} else {
|
||||
meta = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user