diff --git a/Main.py b/Main.py index f3222c5ddd53..e9730ad150a9 100644 --- a/Main.py +++ b/Main.py @@ -331,15 +331,13 @@ def write_multidata(): for player, world_precollected in multiworld.precollected_items.items(): if not world_precollected: continue + if player in multiworld.groups: targets = multiworld.groups[player]["players"] else: targets = [player] - current_list = [] - for item in world_precollected: - if type(item.code) == int: - current_list.append(item.code) + current_list = [item.code for item in world_precollected if type(item.code) == int] for target_player in targets: precollected_items[target_player].extend(current_list)