Skip to content

Commit 3908442

Browse files
committed
Fix #828 account for attribute modifiers with display hidden
1 parent c089d70 commit 3908442

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/components/ItemTooltip.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ function AttributeModifiersTooltip({ data }: { data: NbtTag | undefined }) {
252252
let first = true
253253
return modifiers.map((e) => {
254254
if (!e.isCompound()) return
255+
const display = e.getCompound('display').getString('type')
256+
if (display == 'hidden') return
255257
const slot = e.has('slot') ? e.getString('slot') : 'any'
256258
if (slot !== group) return
257259
const wasFirst = first

0 commit comments

Comments
 (0)