Put in null check for item meta (missed one)

https://github.com/BentoBoxWorld/BentoBox/issues/492
This commit is contained in:
tastybento 2019-01-30 17:38:16 -08:00
parent 791c8b1de1
commit 95efc7a66c

View File

@ -122,7 +122,7 @@ public class PanelItem {
public void setHead(ItemStack itemStack) {
this.icon = itemStack;
// Get the meta
if (icon.hasItemMeta()) {
if (meta != null) {
meta = icon.getItemMeta();
// Set flags to neaten up the view
meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES);