diff --git a/src/main/java/net/minecraftforge/fml/common/launcher/FMLTweaker.java b/src/main/java/net/minecraftforge/fml/common/launcher/FMLTweaker.java index 5b9a1e525..13f7b11e3 100644 --- a/src/main/java/net/minecraftforge/fml/common/launcher/FMLTweaker.java +++ b/src/main/java/net/minecraftforge/fml/common/launcher/FMLTweaker.java @@ -143,11 +143,6 @@ public class FMLTweaker implements ITweaker { @Override public String getLaunchTarget() { - // Remove the extraneous mods and modListFile args - @SuppressWarnings("unchecked") - Map args = (Map) 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 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()]); }