diff --git a/src/main/java/pojlib/InstanceHandler.java b/src/main/java/pojlib/InstanceHandler.java index c0c17257..e8d07429 100644 --- a/src/main/java/pojlib/InstanceHandler.java +++ b/src/main/java/pojlib/InstanceHandler.java @@ -292,7 +292,7 @@ public static void launchInstance(Activity activity, MinecraftAccount account, M API.currentInstance = instance; JREUtils.redirectAndPrintJRELog(); VLoader.setAndroidInitInfo(activity); - JREUtils.launchJavaVM(activity, instance.generateLaunchArgs(account, !Msa.doesOwnGame), instance); + JREUtils.launchJavaVM(activity, instance.generateLaunchArgs(account), instance); } catch (Throwable e) { e.printStackTrace(); } diff --git a/src/main/java/pojlib/util/json/MinecraftInstances.java b/src/main/java/pojlib/util/json/MinecraftInstances.java index 1eadf9c8..3588106f 100644 --- a/src/main/java/pojlib/util/json/MinecraftInstances.java +++ b/src/main/java/pojlib/util/json/MinecraftInstances.java @@ -11,6 +11,7 @@ import pojlib.account.MinecraftAccount; import pojlib.API; import pojlib.InstanceHandler; +import pojlib.account.Msa; import pojlib.util.Constants; import pojlib.util.DownloadUtils; import pojlib.util.FileUtil; @@ -50,7 +51,7 @@ public static class Instance { public ProjectInfo[] extProjects; public boolean defaultMods; - public List generateLaunchArgs(MinecraftAccount account, boolean isDemoMode) { + public List generateLaunchArgs(MinecraftAccount account) { String[] mcArgs = {"--username", account.username, "--version", versionName, "--gameDir", gameDir, "--assetsDir", assetsDir, "--assetIndex", assetIndex, "--uuid", account.uuid.replace("-", ""), "--accessToken", account.accessToken, "--userType", account.userType, "--versionType", "release"}; @@ -58,7 +59,7 @@ public List generateLaunchArgs(MinecraftAccount account, boolean isDemoM List allArgs = new ArrayList<>(Arrays.asList("-cp", classpath)); allArgs.add(mainClass); allArgs.addAll(Arrays.asList(mcArgs)); - if (isDemoMode) {allArgs.add("--demo");} + if (!Msa.doesOwnGame) {allArgs.add("--demo");} return allArgs; }