mojira.dev
MC-250954

Player is assigned a new UUID in singleplayer

In the latest snapshot (22w17a) players are assigned a new UUID in singleplayer worlds. All things relating to the UUID are lost in this snapshot, including but not limited to Skins, Statistics, and Advancements

This can be confirmed by creating a world in 22w16a/22w16b, and then loading the same world in 22w17a. Checking the stats folder in the world folder will display two UUIDs despite it being the same player. 

Attachments

Comments 17

Looking at the JSON files in the stats folder, I can confirm that a new file was created and my statistics were reset. I can also see a new file was created in the advancements folder, resetting the advancements for my character.

I didn't know skins and multiplayer inventories were linked to your UUID. In singleplayer, I kept my inventory items, so I'd think this would be the same in multiplayer. Aren't the items in players inventory saved in their NBT data?

I could be entirely wrong, but the world's inventory is used in single player. Everyone who uses a world download will have the same inventory, even if they had previously joined the world as a player on a server. 

One thing I just learned is that your ID is linked to your account when it is created. So that means that it is the same on every world, regardless on if it's singeplayer or multiplayer. This must be a huge issue then.

I wonder if this bug was caused by the new multiplayer secure chat signing added in this snapshot.

I believe you can see what your ID is supposed to be in launcher_accounts.json
It is located in the .minecraft folder.

You can see in the screenshots below that the ID is not what it is supposed to be. You can see the correct ID for me in 22w16b, and then the incorrect one above it in 22w17a.

[media]

[media]

I crossed out most of the ID incase this is private information that shouldn't be shared.

7 more comments

@unknown Do you have a source?

@unknown If it's true, the bug is in the update from the old UUIDs to the new ones 🙂

This is likely related to the following changes from the patch notes:

  • Chat messages between players are now cryptographically signed.

  • Players are given a Mojang provided key-pair on startup.

  • Servers can require players to have a Mojang-signed public key by setting enforce-secure-profile=true in server.properties.

    • Enforcing secure profiles will prevent players without a Mojang-signed public key from connecting.

    • By default this is set to false, allowing players to connect without a Mojang-signed public key.

There is nothing in the patch notes that suggests that the UUID change or its consequences are a feature or in any way intended.

Also if it was intended it would be affecting multiplayer-only, not singleplayer-only.

@Tokes Luckily the issue has already been labelled as resolved. We'll just have to see how it was handled in 22w18a, for if it was intentional or a complete accident 

Flightning99

gegy

Confirmed

Very Important

Player, Save Data

22w17a

22w18a

Retrieved