From 32f74735335ea15394d5fb77e6fc4ad931735af5 Mon Sep 17 00:00:00 2001 From: Tianpao Date: Sat, 26 Jul 2025 13:29:47 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9ADEP=E6=97=A0=E6=B3=95=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E6=8A=9B=E5=87=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/DeEarth.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/DeEarth.ts b/src/utils/DeEarth.ts index 945ec17..c243eed 100644 --- a/src/utils/DeEarth.ts +++ b/src/utils/DeEarth.ts @@ -153,6 +153,8 @@ export async function DeEarth(modpath: string, movepath: string) { try { if (JSON.parse(await FastGot(`https://dearth.0771010.xyz/api/modid?modid=${modid}`)).isClient) { fs.renameSync(modpath, `${movepath}/${path.basename(modpath)}`) + }else{ + throw new Error("DeEarthPublic Not Found This Mod") } } catch (error) { //mods.toml或fabric.mod.json判断 try{