mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +00:00
Also show item display for block registry
This commit is contained in:
@@ -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 ? <>
|
||||
|
||||
Reference in New Issue
Block a user