From 70ff12bf21c25de96fcc795c440ae2a64b8246e5 Mon Sep 17 00:00:00 2001 From: alwaysintreble Date: Tue, 2 Jan 2024 07:41:05 -0600 Subject: [PATCH] put the warning in the right spot --- worlds/generic/Rules.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worlds/generic/Rules.py b/worlds/generic/Rules.py index 03ca4c10cd47..ac5e1aa50750 100644 --- a/worlds/generic/Rules.py +++ b/worlds/generic/Rules.py @@ -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):