diff options
Diffstat (limited to 'apworld/regions.py')
-rw-r--r-- | apworld/regions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apworld/regions.py b/apworld/regions.py index 24c2281..d388678 100644 --- a/apworld/regions.py +++ b/apworld/regions.py | |||
@@ -11,7 +11,8 @@ def create_region(room, world: "Lingo2World") -> Region: | |||
11 | new_region = Region(room.name, world.player, world.multiworld) | 11 | new_region = Region(room.name, world.player, world.multiworld) |
12 | 12 | ||
13 | for location in world.player_logic.locations_by_room.get(room.id, {}): | 13 | for location in world.player_logic.locations_by_room.get(room.id, {}): |
14 | new_location = Lingo2Location(world.player, location.name, location.code, new_region) | 14 | new_location = Lingo2Location(world.player, world.static_logic.location_id_to_name[location.code], |
15 | location.code, new_region) | ||
15 | new_region.locations.append(new_location) | 16 | new_region.locations.append(new_location) |
16 | 17 | ||
17 | return new_region | 18 | return new_region |