How can I set the username for the player with the runClient task in ForgeGradle? My mod stores some data per user so I need to do this to test it out. I believe I need to set something like the --username flag but the following did not work out:
runClient {
args ['--username sargunster']
}
Which version of Forge are you using? I'm getting the same problem with Forge 4.6.14.513. Currently I'm working around the problem by commenting out lines 445 and 446 of FMLModContainer.java, but a proper solution would be appreciated.