forked from mirror/BlueMap
No need to double check :D
This commit is contained in:
parent
ee384322d7
commit
a75f238222
@ -360,9 +360,9 @@ public static MCAWorld load(Path worldFolder, UUID uuid, BlockIdMapper blockIdMa
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user