mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] optionalClientArgs
This commit is contained in:
parent
ef3fbaef18
commit
326012aad8
1 changed files with 7 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
import pro.gravit.launcher.profiles.ClientProfile;
|
||||
import pro.gravit.launcher.profiles.optional.actions.OptionalAction;
|
||||
import pro.gravit.launcher.profiles.optional.actions.OptionalActionClassPath;
|
||||
import pro.gravit.launcher.profiles.optional.actions.OptionalActionClientArgs;
|
||||
import pro.gravit.launcher.request.Request;
|
||||
import pro.gravit.launcher.request.RequestException;
|
||||
import pro.gravit.launcher.request.auth.AuthRequest;
|
||||
|
@ -237,7 +238,12 @@ private static void launch(ClientProfile profile, ClientLauncherProcess.ClientPa
|
|||
System.setProperty("minecraft.applet.TargetDirectory", params.clientDir);
|
||||
}
|
||||
Collections.addAll(args, profile.getClientArgs());
|
||||
profile.pushOptionalClientArgs(args);
|
||||
for(OptionalAction action : params.actions) {
|
||||
if(action instanceof OptionalActionClientArgs)
|
||||
{
|
||||
args.addAll(((OptionalActionClientArgs) action).args);
|
||||
}
|
||||
}
|
||||
List<String> copy = new ArrayList<>(args);
|
||||
for (int i = 0, l = copy.size(); i < l; i++) {
|
||||
String s = copy.get(i);
|
||||
|
|
Loading…
Reference in a new issue