From cfa97c87157f2cd4752e4f2d55ca2957f2160f61 Mon Sep 17 00:00:00 2001 From: Tianpao Date: Wed, 9 Jul 2025 21:44:04 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Aneoforge=E6=97=A0=E6=B3=95=E5=AE=89?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 2 +- src/ml_install/neoforge.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 967d851..771a791 100644 --- a/src/main.ts +++ b/src/main.ts @@ -89,7 +89,7 @@ async function main(modpack_path: string) { await DeEarthMain(join(dirx, "mods"), join(unzip_path, "rubbish")); await install(info.loader, info.minecraft, info.loader_version, dirx); fs.writeFileSync( - join(dirx, "instance.zip"), + join(dirx, "eula.txt"), "#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://aka.ms/MinecraftEULA).\n#This serverpack created by DeEarthX(QQ_Group:559349662)\neula=true" ); LOGGER.info("DeEarthX已将服务端制作完成!"); diff --git a/src/ml_install/neoforge.ts b/src/ml_install/neoforge.ts index 24f4100..b4b7dd9 100644 --- a/src/ml_install/neoforge.ts +++ b/src/ml_install/neoforge.ts @@ -35,7 +35,7 @@ export default async function install( //下载依赖1 const t = fvdata[c].downloads.artifact; await xfastdownload( - `https://bmclapi2.bangbang93.com/maven${new URL(t.url).pathname}`, + `https://bmclapi2.bangbang93.com/maven${new URL(t.url).pathname.replace("/releases","")}`, `${path}/libraries/${t.path}`, 16 ); @@ -47,7 +47,7 @@ export default async function install( //下载依赖2 const t = fvdata[c].downloads.artifact; await xfastdownload( - `https://bmclapi2.bangbang93.com/maven${new URL(t.url).pathname}`, + `https://bmclapi2.bangbang93.com/maven${new URL(t.url).pathname.replace("/releases","")}`, `${path}/libraries/${t.path}`, 16 );