mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
Put in null check for item meta (missed one)
https://github.com/BentoBoxWorld/BentoBox/issues/492
This commit is contained in:
parent
791c8b1de1
commit
95efc7a66c
@ -122,7 +122,7 @@ public class PanelItem {
|
|||||||
public void setHead(ItemStack itemStack) {
|
public void setHead(ItemStack itemStack) {
|
||||||
this.icon = itemStack;
|
this.icon = itemStack;
|
||||||
// Get the meta
|
// Get the meta
|
||||||
if (icon.hasItemMeta()) {
|
if (meta != null) {
|
||||||
meta = icon.getItemMeta();
|
meta = icon.getItemMeta();
|
||||||
// Set flags to neaten up the view
|
// Set flags to neaten up the view
|
||||||
meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES);
|
meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES);
|
||||||
|
Loading…
Reference in New Issue
Block a user