mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Fix #828 account for attribute modifiers with display hidden
This commit is contained in:
@@ -252,6 +252,8 @@ function AttributeModifiersTooltip({ data }: { data: NbtTag | undefined }) {
|
||||
let first = true
|
||||
return modifiers.map((e) => {
|
||||
if (!e.isCompound()) return
|
||||
const display = e.getCompound('display').getString('type')
|
||||
if (display == 'hidden') return
|
||||
const slot = e.has('slot') ? e.getString('slot') : 'any'
|
||||
if (slot !== group) return
|
||||
const wasFirst = first
|
||||
|
||||
Reference in New Issue
Block a user