Skip to content

Commit

Permalink
OoS: Fixed a client issue with slot_data being None
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinopony committed Aug 12, 2024
1 parent f640ffd commit b79444d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions worlds/tloz_oos/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,10 @@ async def process_scouted_locations(self, ctx: "BizHawkClientContext", flag_byte
for name, location in LOCATIONS_DATA.items():
if "scouting_byte" not in location:
continue
# Do not hint forced shop slot, since it would be cause an error on MultiServer's side
if ctx.slot_data["enforce_potion_in_shop"] and name == "Horon Village: Shop #3":
continue
# Do not hint forced shop slot if it is enabled, since it would cause an error on MultiServer's side
if name == "Horon Village: Shop #3":
if ctx.slot_data is None or ctx.slot_data["enforce_potion_in_shop"]:
continue

# Check "scouting_byte" to see if map has been visited for scoutable locations
byte_to_test = location["scouting_byte"]
Expand Down

0 comments on commit b79444d

Please sign in to comment.