mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 16:47:14 -04:00
[Forge Installer 1.12+] Attempt 2
This commit is contained in:
parent
cd20231767
commit
e94c199604
@ -39,7 +39,7 @@ public class NewForgeInstaller extends BaseInstaller {
|
|||||||
File libraryFile = new File(Tools.libraries, Tools.artifactToPath(libInfos[0], libInfos[1], libInfos[2]));
|
File libraryFile = new File(Tools.libraries, Tools.artifactToPath(libInfos[0], libInfos[1], libInfos[2]));
|
||||||
libraryFile.getParentFile().mkdirs();
|
libraryFile.getParentFile().mkdirs();
|
||||||
target = libraryFile.getAbsolutePath();
|
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("net.minecraftforge","net/minecraftforge" + "/forge-" + libInfos[2] + "-universal.jar";
|
||||||
ctx.appendlnToLog("Downloading " + target);
|
ctx.appendlnToLog("Downloading " + target);
|
||||||
Tools.downloadFile(downloadPath, target);
|
Tools.downloadFile(downloadPath, target);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user