[Forge installer] bug fixes

This commit is contained in:
khanhduytran0 2020-11-22 13:35:21 +07:00
parent 79ae41a651
commit 7a148a58d5
2 changed files with 4 additions and 1 deletions

View file

@ -108,6 +108,8 @@ public class JavaGUILauncherActivity extends LoggableActivity {
}
private void doCustomInstall(File modFile, String javaArgs) throws IOException {
isLogAllow = true;
// Attempt to detects some mod installers
BaseInstaller installer = new BaseInstaller();
installer.setInput(modFile);
@ -116,6 +118,7 @@ public class JavaGUILauncherActivity extends LoggableActivity {
appendlnToLog("Detected Forge installer!");
new ForgeInstaller(installer).install(this);
} else {
isLogAllow = false;
mIsCustomInstall = false;
launchJavaRuntime(modFile, javaArgs);
}