mojira.dev
MC-169433

Worlds are "deleted" when shutting down the computer without saving the world

Workaround

Try replacing level.dat by level.dat_old in your world folder.

The bug

Worlds can be deleted by using the following steps. However, they remain in the ''saves'' folder.

How to reproduce

  1. Create a world with some specific name (to make sure that you won't think that is other world)

  2. Load it

  3. Shut down the computer by pushing the button that you switch on your computer (pull at least 5 seconds)

  4. Switch the computer on again

  5. Open Minecraft

  6. Open the world folder
    → ❌ Notice that the world is gone

  7. Go to the ''saves'' folder
    → ✔ Notice that the save is still there

Related issues

Comments

migrated

You can actually revert this by creating a new world, but you have to create it using the exact same name the original world's save folder has.

violine1101

This probably happens when the level.dat file is saved while the computer is shutdown, causing it to be corrupted. When you create a new world then, it'll probably just overwrite the level.dat file.

Can you check whether removing the level.dat file and replacing it with a copy of the level.dat_old file makes the world visible again?

migrated

Thank you sooo much. IT WORKED!!!

wobst.michael

Actually a duplicate of MC-115237, but leaving it open since it's quite detailed and a Mojang Priority has been assigned.

migrated

hi, same problem, need to rename the file level.dat_old, or it works by just coping it? (means that i will have 2 level.dat_old? and it will have all my building? or just will be playable again but with everything gone?

 

migrated

(Unassigned)

Community Consensus

Platform

Low

Save Data

1.15.1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, ..., 1.16.3, 1.16.5, 21w06a, 1.18.2, 1.19.2

Retrieved