Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/world.py b/world.py
- index 131cfce..99728c1 100644
- --- a/world.py
- +++ b/world.py
- @@ -299,6 +299,11 @@ def get_worlds():
- "Returns {world # : level.dat information}"
- ret = {}
- save_dir = get_save_dir()
- +
- + # No dirs found - most likely not running from inside minecraft-dir
- + if save_dir is None:
- + return None
- +
- for dir in os.listdir(save_dir):
- if dir.startswith("World") and len(dir) == 6:
- world_n = int(dir[-1])
Add Comment
Please, Sign In to add comment