diff --git a/patches/@spyglassmc+mcdoc+0.3.18.patch b/patches/@spyglassmc+mcdoc+0.3.18.patch index 071f8396..53ff4869 100644 --- a/patches/@spyglassmc+mcdoc+0.3.18.patch +++ b/patches/@spyglassmc+mcdoc+0.3.18.patch @@ -1,5 +1,5 @@ diff --git a/node_modules/@spyglassmc/mcdoc/lib/runtime/checker/index.js b/node_modules/@spyglassmc/mcdoc/lib/runtime/checker/index.js -index 2d51735..70ac4a0 100644 +index 2d51735..e37d8cc 100644 --- a/node_modules/@spyglassmc/mcdoc/lib/runtime/checker/index.js +++ b/node_modules/@spyglassmc/mcdoc/lib/runtime/checker/index.js @@ -545,9 +545,9 @@ function simplifyReference(typeDef, context) { @@ -42,3 +42,48 @@ index 2d51735..70ac4a0 100644 return simplifiedResult; } function simplifyDispatcher(typeDef, context) { +@@ -604,23 +604,23 @@ function resolveIndices(parallelIndices, symbolMap, symbolQuery, context) { + let dynamicData = false; + let values = []; + function pushValue(key, data) { +- if (data.simplifiedTypeDef) { +- if (data.simplifiedTypeDef.kind === 'union') { +- values.push(...data.simplifiedTypeDef.members); +- } +- else { +- values.push(data.simplifiedTypeDef); +- } +- } +- else { ++ // if (data.simplifiedTypeDef) { ++ // if (data.simplifiedTypeDef.kind === 'union') { ++ // values.push(...data.simplifiedTypeDef.members); ++ // } ++ // else { ++ // values.push(data.simplifiedTypeDef); ++ // } ++ // } ++ // else { + const simplifiedResult = simplify(data.typeDef, context); + if (simplifiedResult.dynamicData) { + dynamicData = true; + } + else if (symbolQuery) { +- symbolQuery.member(key, s => s.amend({ +- data: { data: { ...data, simplifiedTypeDef: simplifiedResult.typeDef } }, +- })); ++ // symbolQuery.member(key, s => s.amend({ ++ // data: { data: { ...data, simplifiedTypeDef: simplifiedResult.typeDef } }, ++ // })); + } + if (simplifiedResult.typeDef.kind === 'union') { + values.push(...simplifiedResult.typeDef.members); +@@ -628,7 +628,7 @@ function resolveIndices(parallelIndices, symbolMap, symbolQuery, context) { + else { + values.push(simplifiedResult.typeDef); + } +- } ++ // } + } + let unkownTypeDef = false; + function getUnknownTypeDef() {