fix:neoforge无法安装

This commit is contained in:
Tianpao
2025-07-09 21:44:04 +08:00
parent 0acd64ae86
commit cfa97c8715
2 changed files with 3 additions and 3 deletions

View File

@@ -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已将服务端制作完成");

View File

@@ -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
);