Skip to content

Commit d5babfd

Browse files
committed
fix: wrong forge installer maven path
1 parent afcae59 commit d5babfd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/installer/forge.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ function installByInstallerTask(version: RequiredVersion, minecraft: MinecraftLo
9494
let inf = version.installer;
9595
let path = inf ? inf.path : `net/minecraftforge/forge/${forgeVersion}/forge-${forgeVersion}-installer.jar`;
9696

97-
let installJarPath = mc.getLibraryByPath(path.substring(path.substring(1).indexOf("/") + 1));
98-
9997
let forgeMavenPath = path.replace("/maven", "").replace("maven", "");
10098
let library = VersionJson.resolveLibrary({
10199
name: `net.minecraftforge:forge:${forgeVersion}:installer`,
@@ -113,6 +111,7 @@ function installByInstallerTask(version: RequiredVersion, minecraft: MinecraftLo
113111

114112
context.update(0, 120);
115113

114+
let installJarPath = mc.getLibraryByPath(library.path);
116115
let downloadTask = Task.create("downloadInstaller", downloadFileTask({
117116
url: urls,
118117
destination: installJarPath,

0 commit comments

Comments
 (0)