Fix --mods and --modListFile arguments not making it past LaunchWrapper.
This commit is contained in:
parent
f2da4be93e
commit
8ace535995
1 changed files with 2 additions and 6 deletions
|
@ -143,11 +143,6 @@ public class FMLTweaker implements ITweaker {
|
|||
@Override
|
||||
public String getLaunchTarget()
|
||||
{
|
||||
// Remove the extraneous mods and modListFile args
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String,String> args = (Map<String, String>) Launch.blackboard.get("launchArgs");
|
||||
args.remove("--modListFile");
|
||||
args.remove("--mods");
|
||||
return "net.minecraft.client.main.Main";
|
||||
}
|
||||
|
||||
|
@ -159,10 +154,11 @@ public class FMLTweaker implements ITweaker {
|
|||
|
||||
for (Entry<String, String> arg : launchArgs.entrySet())
|
||||
{
|
||||
if ("--modListFile".equals(arg.getKey()) || "--mods".equals(arg.getKey()))
|
||||
continue;
|
||||
args.add(arg.getKey());
|
||||
args.add(arg.getValue());
|
||||
}
|
||||
launchArgs.clear();
|
||||
|
||||
return args.toArray(new String[args.size()]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue