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 DeEarthMain(join(dirx, "mods"), join(unzip_path, "rubbish"));
await install(info.loader, info.minecraft, info.loader_version, dirx); await install(info.loader, info.minecraft, info.loader_version, dirx);
fs.writeFileSync( 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" "#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已将服务端制作完成"); LOGGER.info("DeEarthX已将服务端制作完成");

View File

@@ -35,7 +35,7 @@ export default async function install(
//下载依赖1 //下载依赖1
const t = fvdata[c].downloads.artifact; const t = fvdata[c].downloads.artifact;
await xfastdownload( 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}`, `${path}/libraries/${t.path}`,
16 16
); );
@@ -47,7 +47,7 @@ export default async function install(
//下载依赖2 //下载依赖2
const t = fvdata[c].downloads.artifact; const t = fvdata[c].downloads.artifact;
await xfastdownload( 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}`, `${path}/libraries/${t.path}`,
16 16
); );