Skip to content

Commit 94ec94f

Browse files
Fix placeholder item tooltip not hidden
ItemBuilder unhides the tooltip on setName
1 parent 39b23c9 commit 94ec94f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

invui/src/main/java/xyz/xenondevs/invui/util/ItemUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public static boolean isEmpty(@Nullable ItemStack itemStack) {
8585
public static ItemStack getPlaceholder() {
8686
if (placeholder == null) {
8787
placeholder = new ItemBuilder(Material.BARRIER)
88-
.hideTooltip(true)
8988
.setName("") // for anvil window default rename text
89+
.hideTooltip(true)
9090
.set(DataComponentTypes.ITEM_MODEL, Key.key("air"))
9191
.build();
9292
}

0 commit comments

Comments
 (0)