Skip to content

Commit

Permalink
WebHost: Fix KeyError in alttp multitracker (#2194)
Browse files Browse the repository at this point in the history
  • Loading branch information
remyjette authored Sep 20, 2023
1 parent aff852f commit 794959e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebHostLib/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ def attribute_item(team: int, recipient: int, item: int):
for item_id in precollected:
attribute_item(team, player, item_id)
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
item, recipient, flags = player_locations[location]
recipients = groups.get(recipient, [recipient])
Expand Down

0 comments on commit 794959e

Please sign in to comment.