Try to fix a crash with unknown blocks

This commit is contained in:
Novatux 2015-02-16 08:30:37 +01:00
parent c607bf8ae5
commit f7b834e7f5

View File

@ -63,7 +63,8 @@ def read_content(flags):
if key not in bd:
bd[key] = (get_id(name_id_mapping, name), param2)
blocks_len = max([i[0] for i in bd.keys()])+1
#blocks_len = max([i[0] for i in bd.keys()])+1
blocks_len = 4096
blocks = [[(0, 0)]*16 for i in range(blocks_len)]
for (id, data), value in bd.items():
blocks[id][data] = value