Skip to content

Commit c675bd4

Browse files
committed
Fix settings rules on the modded zone having a key error that blocked generate.
1 parent 196f505 commit c675bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worlds/crystal_project/regions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def init_areas(world: "CrystalProjectWorld", locations: List[LocationData], opti
9999
rules_on_regions[MODDED_ZONE] = lambda state: True
100100

101101
for region in region_levels_dictionary:
102-
if world.options.regionsanity.value == world.options.regionsanity.option_true:
102+
if world.options.regionsanity.value == world.options.regionsanity.option_true and region != MODDED_ZONE:
103103
rules_on_regions[region] = lambda state, lambda_region = region: (logic.is_area_in_level_range(state, region_levels_dictionary[lambda_region][0])
104104
and state.has(region_name_to_pass_dict[lambda_region], player))
105105

0 commit comments

Comments
 (0)