No need to double check :D

This commit is contained in:
Blue (Lukas Rieger) 2020-01-18 12:59:23 +01:00
parent ee384322d7
commit a75f238222
1 changed files with 3 additions and 3 deletions

View File

@ -360,9 +360,9 @@ public class MCAWorld implements World {
File levelFile = new File(worldFolder.toFile(), "level.dat");
if (!levelFile.exists()) {
levelFile = new File(worldFolder.toFile().getParentFile(), "level.dat");
}
if (!levelFile.exists()) {
throw new FileNotFoundException("Could not find a level.dat file for this world!");
if (!levelFile.exists()) {
throw new FileNotFoundException("Could not find a level.dat file for this world!");
}
}
CompoundTag level = (CompoundTag) NBTUtil.readTag(levelFile);