mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 07:37:10 +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 ? <>
|
||||
|
||||
@@ -83,6 +83,9 @@ function getRootType(id: string): McdocType {
|
||||
if (id === 'pack_mcmeta') {
|
||||
return { kind: 'reference', path: '::java::pack::Pack' }
|
||||
}
|
||||
if (id === 'text_component' ) {
|
||||
return { kind: 'reference', path: '::java::server::util::text::Text' }
|
||||
}
|
||||
if (id.startsWith('tag/')) {
|
||||
const attribute: AttributeValue = {
|
||||
kind: 'tree',
|
||||
|
||||
Reference in New Issue
Block a user