mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 16:16:04 -04:00
[Forge Installer 1.12+] fix the error
This commit is contained in:
parent
1495928bb0
commit
989efc3385
@ -27,7 +27,7 @@ public class NewForgeInstaller extends BaseInstaller {
|
|||||||
versionFile.mkdir();
|
versionFile.mkdir();
|
||||||
target = versionFile.getAbsolutePath() + "/" + profile.version + ".json";
|
target = versionFile.getAbsolutePath() + "/" + profile.version + ".json";
|
||||||
ctx.appendlnToLog("Writing " + target + " from " + profile.json);
|
ctx.appendlnToLog("Writing " + target + " from " + profile.json);
|
||||||
ZipEntry versionJson = mJarFile.getEntry(profile.json==null ? "version.json" : profile.json.substring(profile.json.indexOf("/")+1,profile.json.length());
|
ZipEntry versionJson = mJarFile.getEntry(profile.json==null ? "version.json" : profile.json.substring(profile.json.indexOf("/")+1,profile.json.length()));
|
||||||
Tools.write(
|
Tools.write(
|
||||||
target,
|
target,
|
||||||
Tools.convertStream(mJarFile.getInputStream(versionJson))
|
Tools.convertStream(mJarFile.getInputStream(versionJson))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user