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{