mojira.dev
MCL-20810

Invalid cli arguments are sent to Minecraft when using a Mojang account.

When logging in with a Mojang account an invalid "--xuid" run argument without a value is passed to the game.  This works as expected when using a MS account.

"--clientId MW<redacted>Fi --xuid  -userType mojang --versionType release"

Note the double space between --xuid and --userType, the expected cli arguments would be:

"--clientId MW<redacted>Fi --userType mojang --versionType release"

I dont belive this causes an issue in vanilla (I havent looked into it too much), however it does cause the Fabric mod loader to stumble over parsing the arguments correctly, leading to a lack of Fabric branding on the main menu.

It would be great to have this returned to the previous behaviour (without the empty --xuid argument) to ensure that all versions of Fabric work as expected for Mojang account holders. I have created a PR for Fabric Loader here with a work around: https://github.com/FabricMC/fabric-loader/pull/566

 

Thanks for your time, let me know if you need any more information.

 

Comments 1

Hi there!
Could you answer few questions regarding this issue, it will help with the investigation:
Does this issue still occurs to you on newest version of Launcher?
Does the issue effect occurs for the Minecraft Launcher downloaded from minecraft.net and from Microsoft Store as well? 
Could you provide us with more in-depth repro steps?

Also, could you attach screenshots and video? That would help the investigation.

This ticket will automatically reopen when you reply.

modmuss50

(Unassigned)

Plausible

Retrieved