Skip to content

Commit

Permalink
put the warning in the right spot
Browse files Browse the repository at this point in the history
  • Loading branch information
alwaysintreble committed Jan 2, 2024
1 parent c5a198a commit 70ff12b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion worlds/generic/Rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ def exclusion_rules(multiworld: MultiWorld, player: int, exclude_locations: typi
raise Exception(f"Unable to exclude location {loc_name} in player {player}'s world.") from e
else:
if not location.event:
logging.warning(f"Unable to exclude location {loc_name} in player {player}'s world.")
location.progress_type = LocationProgressType.EXCLUDED
else:
logging.warning(f"Unable to exclude location {loc_name} in player {player}'s world.")


def set_rule(spot: typing.Union["BaseClasses.Location", "BaseClasses.Entrance"], rule: CollectionRule):
Expand Down

0 comments on commit 70ff12b

Please sign in to comment.