fix:neoforge无法安装
This commit is contained in:
@@ -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已将服务端制作完成!");
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user