Skip to content

Commit

Permalink
forgot placeholders support for tooltip_style & item_model
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanguygab committed Nov 20, 2024
1 parent 0cd983a commit 83307a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/extendedclip/deluxemenus/menu/MenuItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@ public ItemStack getItemStack(@NotNull final MenuHolder holder) {
}
if (VersionHelper.HAS_TOOLTIP_STYLE) {
if (this.options.tooltipStyle().isPresent()) {
NamespacedKey tooltipStyle = NamespacedKey.fromString(this.options.tooltipStyle().get());
NamespacedKey tooltipStyle = NamespacedKey.fromString(holder.setPlaceholdersAndArguments(this.options.tooltipStyle().get()));
if (tooltipStyle != null) itemMeta.setTooltipStyle(tooltipStyle);
}
if (this.options.itemModel().isPresent()) {
NamespacedKey itemModel = NamespacedKey.fromString(this.options.itemModel().get());
NamespacedKey itemModel = NamespacedKey.fromString(holder.setPlaceholdersAndArguments(this.options.itemModel().get()));
if (itemModel != null) itemMeta.setItemModel(itemModel);
}
}
Expand Down

0 comments on commit 83307a6

Please sign in to comment.