Fix check_for_mods

This commit is contained in:
Dusty.P 2018-05-11 00:56:00 -08:00
parent 7515e4ab9a
commit 6b5cdab1cb

View File

@ -20,7 +20,7 @@ def load_zip(file) -> zipfile.ZipFile:
def check_for_mods(game_file) -> list: def check_for_mods(game_file) -> list:
mods = list() mods = list()
for line in list(map(bytes.decode, game_file.readlines())): for line in game_file.readlines():
if line.startswith('ModIDS='): if line.startswith('ModIDS='):
mods.append(line.split('=')[1].strip()) mods.append(line.split('=')[1].strip())
return mods return mods