mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-01-24 09:11:20 +01:00
No need to double check :D
This commit is contained in:
parent
ee384322d7
commit
a75f238222
@ -360,10 +360,10 @@ 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!");
|
||||
}
|
||||
}
|
||||
|
||||
CompoundTag level = (CompoundTag) NBTUtil.readTag(levelFile);
|
||||
CompoundTag levelData = level.getCompoundTag("Data");
|
||||
|
Loading…
Reference in New Issue
Block a user