Skip to content

Commit

Permalink
check if the class is a subclass of Removed specifically instead of t…
Browse files Browse the repository at this point in the history
…he none flag
  • Loading branch information
alwaysintreble committed Jul 24, 2024
1 parent 8b2ff4d commit 6862d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ def dump_player_options(multiworld: MultiWorld) -> None:
}
output.append(player_output)
for option_key, option in world.options_dataclass.type_hints.items():
if option.visibility == Visibility.none:
if issubclass(Removed, option):
continue
display_name = getattr(option, "display_name", option_key)
player_output[display_name] = getattr(world.options, option_key).current_option_name
Expand Down

0 comments on commit 6862d38

Please sign in to comment.