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

View File

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