Also show item display for block registry

This commit is contained in:
Misode
2024-10-26 22:46:15 +02:00
parent 2163020db8
commit e8871ee02a
2 changed files with 4 additions and 1 deletions

View File

@@ -129,7 +129,7 @@ function StringHead({ type, optional, node, makeEdit, ctx }: Props<StringType>)
}, [onChangeValue])
return <>
{(idRegistry === 'item' && value && !value.startsWith('#')) && <label>
{((idRegistry === 'item' || idRegistry === 'block') && value && !value.startsWith('#')) && <label>
<ItemDisplay item={new ItemStack(Identifier.parse(value), 1)} />
</label>}
{isSelect ? <>