0

Merge pull request #1112 from CounterPillow/worldnamefix

Remove broken special case for ancient worlds
This commit is contained in:
Andrew Chin
2014-06-04 09:57:07 -04:00

View File

@@ -780,12 +780,7 @@ def get_worlds():
if not os.path.exists(world_dat): continue
info = nbt.load(world_dat)[1]
info['Data']['path'] = os.path.join(save_dir, dir).decode(loc)
if dir.startswith("World") and len(dir) == 6:
try:
world_n = int(dir[-1])
ret[world_n] = info['Data']
except ValueError:
pass
if 'LevelName' in info['Data'].keys():
ret[info['Data']['LevelName']] = info['Data']