Fix to portal/rooms resets

This commit is contained in:
aerinon
2021-01-12 14:38:34 -07:00
parent f72d287441
commit f45ae1c97b
4 changed files with 52 additions and 31 deletions

View File

@@ -433,7 +433,7 @@ def copy_world(world):
copied_region.is_light_world = region.is_light_world
copied_region.is_dark_world = region.is_dark_world
copied_region.dungeon = region.dungeon
copied_region.locations = [Location(location.player, location.name, parent=copied_region) for location in region.locations]
copied_region.locations = [ret.get_location(location.name, location.player) for location in region.locations]
for entrance in region.entrances:
ret.get_entrance(entrance.name, entrance.player).connect(copied_region)