diff --git a/docs/.vitepress/analyzers/mcla.ts b/docs/.vitepress/analyzers/mcla.ts index 3ca4cb54..24cfef97 100644 --- a/docs/.vitepress/analyzers/mcla.ts +++ b/docs/.vitepress/analyzers/mcla.ts @@ -12,7 +12,7 @@ import type { } from "./mcla.api" export * from "./mcla.api" -const VERSION = "v0.4.23" +const VERSION = "v0.5.0" // const VERSION = "dev" const RESOURCES_BASE = "https://globemc.github.io/mcla" const GO_WASM_EXEC_URL = useCDN(`${RESOURCES_BASE}/${VERSION}/wasm_exec.js`) @@ -226,7 +226,7 @@ async function loadMCLA(loadProgress?: Ref): Promise { console.log("Loading MCLA ...") - await import(GO_WASM_EXEC_URL /* @vite-ignore */) // set variable `window.Go` + await import(/* @vite-ignore */ GO_WASM_EXEC_URL) // set variable `window.Go` const go = new (window as any as containsGoCls).Go() var res diff --git a/docs/.vitepress/theme/components/Analyzer.vue b/docs/.vitepress/theme/components/Analyzer.vue index 9278de6a..6f20da8b 100644 --- a/docs/.vitepress/theme/components/Analyzer.vue +++ b/docs/.vitepress/theme/components/Analyzer.vue @@ -1147,6 +1147,9 @@ onUnmounted(() => { 匹配度: {{ match.match * 100 }}% + + {{ match.desc.message }} +
@@ -1159,7 +1162,7 @@ onUnmounted(() => {
解决方案: - + 打开文档
diff --git a/docs/.vitepress/workers/mcla.worker.ts b/docs/.vitepress/workers/mcla.worker.ts index ad463442..2ba9128a 100644 --- a/docs/.vitepress/workers/mcla.worker.ts +++ b/docs/.vitepress/workers/mcla.worker.ts @@ -188,7 +188,7 @@ async function setup(data: SetupData) { ) console.debug(`Loading MCLA from ${data.wasm_url} ...`) - await import(data.wasm_exec /* @vite-ignore */) // set variable `globalThis.Go` + await import(/* @vite-ignore */ data.wasm_exec) // set variable `globalThis.Go` const go = new globalThis.Go() var res if (WebAssembly.instantiateStreaming) { diff --git a/docs/server/mods.md b/docs/server/mods.md index d8b6b40e..bc3afc04 100644 --- a/docs/server/mods.md +++ b/docs/server/mods.md @@ -1,5 +1,21 @@ # Mod 问题 +## 在服务端运行仅客户端模组 + +解决方案:移除日志中指示的 Mod。例如下方的情况应该移除 distanthorizons。 + +``` +[net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Failed to create mod instance. ModID: distanthorizons, class com.seibel.distanthorizons.forge.ForgeMain +``` + +关键词: + +``` +Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid dist DEDICATED_SERVER + +java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft +``` + ## Fabric ### 模组问题