Skip to content

Commit 22d35ef

Browse files
committed
Make hide_tooltip actually hide the tooltip
1 parent c066d88 commit 22d35ef

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/app/components/ItemDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function ItemDisplay({ item, slotDecoration, tooltip, advancedTooltip }:
6161
</svg>}
6262
<div class="item-slot-overlay"></div>
6363
</>}
64-
{tooltip !== false && <div class="item-tooltip" style={tooltipOffset && {
64+
{tooltip !== false && !resolvedItem.has('hide_tooltip') && <div class="item-tooltip" style={tooltipOffset && {
6565
left: (tooltipSwap ? undefined : `${tooltipOffset[0]}px`),
6666
right: (tooltipSwap ? `${tooltipOffset[0]}px` : undefined),
6767
top: `${tooltipOffset[1]}px`,

src/app/components/ItemTooltip.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ interface Props {
1111
resolver: (item: ItemStack) => ResolvedItem,
1212
}
1313
export function ItemTooltip({ item, advanced, resolver }: Props) {
14-
if (item.has('hide_tooltip')) {
15-
return <></>
16-
}
17-
1814
return <>
1915
<TextComponent component={item.getStyledHoverName()} />
2016
{!advanced && !item.has('custom_name') && item.is('filled_map') && item.has('map_id') && (

0 commit comments

Comments
 (0)