mojira.dev
MC-307255

World migration generate a fallback null player when level has a Player tag with not data

If i use a world from 1.21.11 using a level.dat with Player tag but with not data in the migration to 26.1.1 a new file in players/data its created with a null UUID (00000000-0000-0000-0000-000000000000)

Steps to reproduce the issue

Create a world in 1.21.11 where a Player tag exists but contains no data

Expected result

The Player tag its ignored in the migration and continue the migration

Actual result

The Player tag its readed, pass the migration and create a fallback data, also create a new singleplayer data with invalid data.

Attachments

Comments 4

Thank you for helping us improve Minecraft! We saved your files:

[media]

Is there a way for the game to create a level.dat file where the Player tag has no contents in 1.21.11, or do you have to edit the file manually?

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

Hi, i get a world with that issue but cannot find a way in recent versions to get that file with that things then not sure if maybe the issue come from a old version migration…

Resolving as Invalid, since there is no known way to get a vanilla client or server to create such a file, and the attached file indicates the world has previously been opened in a modified version.

Doc

(Unassigned)

Unconfirmed

26.1.1, 26.1.2, 26.2 Snapshot 1, 26.2 Snapshot 3, 26.2 Snapshot 4

Retrieved