I am creating my own multilauncher. I have completed the basics of the launcher and started adding features, running Minecraft with Minecraft Forge works fine with my launcher, but the problem is when I added Shortcut feature. So there wouldn't be a problem with that feature, but the problem is when i have MCP with my mod installed.
I have no idea why, but when Forge is launched throught the my launcher shortcut, it loads my mod from MCP causing Minecraft to crash even if the MCP is in another location then shortcut, launcher or forge. The error is: "java.lang.IllegalArgumentException: duplicate key: *mod name*"
Shotcut refers to my launcher with arguments, that my program accepts and uses them to launch the correct Minecraft.
No others mods then forge are installed.
And my question is: Why is forge loading my MCP mod?