diff --git a/src/main/java/com/extendedclip/deluxemenus/menu/MenuItem.java b/src/main/java/com/extendedclip/deluxemenus/menu/MenuItem.java index 693a882..4413318 100644 --- a/src/main/java/com/extendedclip/deluxemenus/menu/MenuItem.java +++ b/src/main/java/com/extendedclip/deluxemenus/menu/MenuItem.java @@ -9,6 +9,7 @@ import com.extendedclip.deluxemenus.utils.ItemUtils; import com.extendedclip.deluxemenus.utils.StringUtils; import com.extendedclip.deluxemenus.utils.VersionHelper; +import com.google.common.collect.ImmutableMultimap; import org.bukkit.Color; import org.bukkit.FireworkEffect; import org.bukkit.Material; @@ -394,7 +395,7 @@ public ItemStack getItemStack(@NotNull final MenuHolder holder) { itemMeta.addItemFlags(flag); if (flag == ItemFlag.HIDE_ATTRIBUTES && VersionHelper.HAS_DATA_COMPONENTS) { - itemMeta.setAttributeModifiers(null); + itemMeta.setAttributeModifiers(ImmutableMultimap.of()); } } }