Fixed error with Mixed OWR + Flute Shuffle

This commit is contained in:
codemann8
2023-08-25 13:20:24 -05:00
parent 63d33e4817
commit 2f2764adb4

View File

@@ -1370,7 +1370,7 @@ def validate_layout(world, player):
# check if can be accessed flute
if unreachable_regions[region_name].type == (RegionType.LightWorld if world.mode[player] != 'inverted' else RegionType.DarkWorld):
owid = OWTileRegions[region_name]
if owid < 0x80 and owid % 40 in flute_data and region_name in flute_data[owid % 0x40][0]:
if owid < 0x80 and owid % 0x40 in flute_data and region_name in flute_data[owid % 0x40][0]:
if world.owFluteShuffle[player] != 'vanilla' or owid % 0x40 in default_flute_connections:
unreachable_regions.pop(region_name)
explore_region(region_name)