From 0acd64ae863e710d1011b3892fcee58cea3f7df2 Mon Sep 17 00:00:00 2001 From: Tianpao Date: Wed, 9 Jul 2025 20:44:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Aneoforge=E6=97=A0=E6=B3=95=E4=BD=BF?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ml_install/neoforge.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ml_install/neoforge.ts b/src/ml_install/neoforge.ts index 1c16a00..24f4100 100644 --- a/src/ml_install/neoforge.ts +++ b/src/ml_install/neoforge.ts @@ -19,7 +19,7 @@ export default async function install( neoforge: string, path: string ) { - const mcinfo = (await gotx + const mcinfo = (await got .get(`version/${minecraft}/json`) .json()) as mcinfoX; //获取Minecraft版本JSON const installer = ( @@ -35,7 +35,7 @@ export default async function install( //下载依赖1 const t = fvdata[c].downloads.artifact; await xfastdownload( - `maven${new URL(t.url).pathname}`, + `https://bmclapi2.bangbang93.com/maven${new URL(t.url).pathname}`, `${path}/libraries/${t.path}`, 16 ); @@ -47,7 +47,7 @@ export default async function install( //下载依赖2 const t = fvdata[c].downloads.artifact; await xfastdownload( - `maven${new URL(t.url).pathname}`, + `https://bmclapi2.bangbang93.com/maven${new URL(t.url).pathname}`, `${path}/libraries/${t.path}`, 16 ); @@ -57,13 +57,13 @@ export default async function install( for (let d = 0; d < mcinfo.libraries.length; d++) { const g = mcinfo.libraries[d].downloads.artifact; await xfastdownload( - `maven${new URL(g.url).pathname}`, + `https://bmclapi2.bangbang93.com/maven${new URL(g.url).pathname}`, `${path}/libraries/${g.path}`, 16 ); } await xfastdownload( - `version/${minecraft}/server`, + `https://bmclapi2.bangbang93.com/version/${minecraft}/server`, `${path}/libraries/net/minecraft/server/${minecraft}/server-${minecraft}.jar`, 1 );