Fix --mods and --modListFile arguments not making it past LaunchWrapper.

This commit is contained in:
LexManos 2018-09-03 21:20:23 -07:00
parent f2da4be93e
commit 8ace535995

View file

@ -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()]);
}