diff --git a/src/app/components/generator/McdocRenderer.tsx b/src/app/components/generator/McdocRenderer.tsx index cbb4689d..53f80da8 100644 --- a/src/app/components/generator/McdocRenderer.tsx +++ b/src/app/components/generator/McdocRenderer.tsx @@ -139,9 +139,12 @@ function StringHead({ type, optional, node, makeEdit, ctx }: Props) const idAttribute = type.attributes?.find(a => a.name === 'id')?.value const idRegistry = idAttribute?.kind === 'literal' && idAttribute.value.kind === 'string' ? idAttribute.value.value - : idAttribute?.kind === 'tree' && idAttribute.values.registry?.kind === 'literal' && idAttribute.values.registry?.value.kind === 'string' - ? idAttribute.values.registry?.value.value + : idAttribute?.kind === 'tree' && idAttribute.values.registry?.kind === 'literal' && idAttribute.values.registry.value.kind === 'string' + ? idAttribute.values.registry.value.value : undefined + const idTags = idAttribute?.kind === 'tree' && idAttribute.values.tags?.kind === 'literal' && idAttribute.values.tags.value.kind === 'string' + ? idAttribute.values.tags.value.value + : undefined const isSelect = idRegistry && isSelectRegistry(idRegistry) const onChangeValue = useCallback((newValue: string) => { @@ -180,7 +183,7 @@ function StringHead({ type, optional, node, makeEdit, ctx }: Props) }, [onChangeValue]) return <> - {((idRegistry === 'item' || idRegistry === 'block') && value && !value.startsWith('#')) &&