mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-12 17:40:11 -07:00
[Forge installer] Add 1.12.2+ support
This commit is contained in:
parent
7a5c6f592d
commit
8c86158de2
6 changed files with 84 additions and 10 deletions
|
|
@ -115,9 +115,12 @@ public class JavaGUILauncherActivity extends LoggableActivity {
|
|||
installer.setInput(modFile);
|
||||
|
||||
if (InstallerDetector.isForgeLegacy(installer)) {
|
||||
appendlnToLog("Detected Forge installer!");
|
||||
new ForgeInstaller(installer).install(this);
|
||||
} else {
|
||||
appendlnToLog("Detected Forge Installer 1.12.1 or below!");
|
||||
new LegacyForgeInstaller(installer).install(this);
|
||||
} else if (InstallerDetector.isForgeNew(installer)) {
|
||||
appendlnToLog("Detected Forge Installer 1.12.2 or above!");
|
||||
new NewForgeInstaller(installer).install(this);
|
||||
} else {
|
||||
appendlnToLog("No mod detected. Starting JVM");
|
||||
isLogAllow = false;
|
||||
mSkipDetectMod = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue