diff --git a/src/app/components/generator/McdocRenderer.tsx b/src/app/components/generator/McdocRenderer.tsx
index d053a90b..ad264220 100644
--- a/src/app/components/generator/McdocRenderer.tsx
+++ b/src/app/components/generator/McdocRenderer.tsx
@@ -1,6 +1,8 @@
+import * as core from '@spyglassmc/core'
import type { JsonNode } from '@spyglassmc/json'
+import * as json from '@spyglassmc/json'
import { JsonArrayNode, JsonBooleanNode, JsonNumberNode, JsonObjectNode, JsonStringNode } from '@spyglassmc/json'
-import type { ListType, LiteralType, McdocType } from '@spyglassmc/mcdoc'
+import type { ListType, LiteralType, McdocType, NumericType } from '@spyglassmc/mcdoc'
import type { SimplifiedStructType } from '@spyglassmc/mcdoc/lib/runtime/checker/index.js'
import { useCallback } from 'preact/hooks'
import { useLocale } from '../../contexts/Locale.jsx'
@@ -30,13 +32,11 @@ interface HeadProps extends Props {
simpleType: McdocType
optional?: boolean
}
-function Head({ simpleType, optional, node }: HeadProps) {
+function Head({ simpleType, optional, node, makeEdit }: HeadProps) {
const { locale } = useLocale()
const type = node?.typeDef ?? simpleType
if (type.kind === 'string') {
- const value = JsonStringNode.is(node) ? node.value : undefined
-
- return
+ return
}
if (type.kind === 'enum') {
const value = JsonStringNode.is(node) ? node.value : undefined
@@ -48,15 +48,10 @@ function Head({ simpleType, optional, node }: HeadProps) {
}
if (type.kind === 'byte' || type.kind === 'short' || type.kind === 'int' || type.kind === 'long' || type.kind === 'float' || type.kind === 'double') {
- const value = node && JsonNumberNode.is(node) ? Number(node.value.value) : undefined
- return
+ return
}
if (type.kind === 'boolean') {
- const value = node && JsonBooleanNode.is(node) ? node.value : undefined
- return <>
-
-
- >
+ return
}
if (type.kind === 'union') {
return