WebHost: Fix KeyError in alttp multitracker (#2194)

This commit is contained in:
Remy Jette 2023-09-20 01:20:03 -07:00 committed by GitHub
parent aff852fb45
commit 794959e182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1683,7 +1683,7 @@ def get_LttP_multiworld_tracker(tracker: UUID):
for item_id in precollected: for item_id in precollected:
attribute_item(team, player, item_id) attribute_item(team, player, item_id)
for location in locations_checked: for location in locations_checked:
if location not in player_locations or location not in player_location_to_area[player]: if location not in player_locations or location not in player_location_to_area.get(player, {}):
continue continue
item, recipient, flags = player_locations[location] item, recipient, flags = player_locations[location]
recipients = groups.get(recipient, [recipient]) recipients = groups.get(recipient, [recipient])