[Forge Installer 1.12+]Use net/minecraftforge...

...instead of net.minecraftforge
This commit is contained in:
ArtDev
2020-11-23 20:05:12 +03:00
committed by GitHub
parent 989efc3385
commit 26d833fccc

View File

@@ -39,7 +39,7 @@ public class NewForgeInstaller extends BaseInstaller {
File libraryFile = new File(Tools.libraries, Tools.artifactToPath(libInfos[0], libInfos[1], libInfos[2]));
libraryFile.getParentFile().mkdirs();
target = libraryFile.getAbsolutePath();
String downloadPath = "https://files.minecraftforge.net/maven/" + profile.path.replace(":", "/") + "/forge-" + libInfos[2] + "-universal.jar";
String downloadPath = "https://files.minecraftforge.net/maven/" + profile.path.replace(":", "/").replace(".","/") + "/forge-" + libInfos[2] + "-universal.jar";
ctx.appendlnToLog("Downloading " + target);
Tools.downloadFile(downloadPath, target);
}