diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-03-17 22:03:48 -0700 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-03-17 22:03:48 -0700 |
commit | 7586281e8bfe093bee4e5723106ff6a9d56b9074 (patch) | |
tree | 6e290464fcb53cd5e9000148278c54a39e81dafb /extras/crystal.py | |
parent | 36a0acbde17ede24152840257e8f12918cd9c6b6 (diff) | |
parent | bcf9eadadfba10e0904eb5c09190b338d5af7c9f (diff) |
Merge pull request #123 from yenatch/master
tilesets
Diffstat (limited to 'extras/crystal.py')
-rw-r--r-- | extras/crystal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/crystal.py b/extras/crystal.py index b3f29a12f..0fe1aa30c 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -6201,7 +6201,7 @@ def parse_map_header_by_id(*args, **kwargs): elif len(args) == 1 and type(args[0]) == str: map_group = int(args[0].split(".")[0]) map_id = int(args[0].split(".")[1]) - else: + elif map_group == None and map_id == None: raise Exception("dunno what to do with input") offset = map_names[map_group]["offset"] map_header_offset = offset + ((map_id - 1) * map_header_byte_size) |