From 929c6849775887092cddf97022186c046ff3c598 Mon Sep 17 00:00:00 2001 From: Jarno Westhof Date: Fri, 21 Jan 2022 23:09:17 +0100 Subject: [PATCH] [Bug] fixed collect --- MultiServer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MultiServer.py b/MultiServer.py index ee897974..af7a4fbc 100644 --- a/MultiServer.py +++ b/MultiServer.py @@ -671,8 +671,8 @@ def collect_player(ctx: Context, team: int, slot: int): """register any locations that are in the multidata, pointing towards this player""" all_locations = collections.defaultdict(set) for source_slot, location_data in ctx.locations.items(): - for location_id, (item_id, target_player_id) in location_data.items(): - if target_player_id == slot: + for location_id, values in location_data.items(): + if values[1] == slot: all_locations[source_slot].add(location_id) ctx.notify_all("%s (Team #%d) has collected" % (ctx.player_names[(team, slot)], team + 1))