Skip to content

Commit cb6b29d

Browse files
LADX: fix for unconnected entrances in other worlds #4771
1 parent 82b0819 commit cb6b29d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

worlds/ladx/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ def is_possible_start_item(item):
310310

311311
def opens_new_regions(item):
312312
collection_state = base_collection_state.copy()
313-
collection_state.collect(item)
313+
collection_state.collect(item, prevent_sweep=True)
314+
collection_state.sweep_for_advancements(self.get_locations())
314315
return len(collection_state.reachable_regions[self.player]) > reachable_count
315316

316317
start_items = [item for item in itempool if is_possible_start_item(item)]
@@ -329,7 +330,7 @@ def opens_new_regions(item):
329330
if entrance_mapping['start_house'] not in ['start_house', 'shop']:
330331
start_items = [item for item in start_items if item.name != 'Shovel']
331332
base_collection_state = CollectionState(self.multiworld)
332-
base_collection_state.update_reachable_regions(self.player)
333+
base_collection_state.sweep_for_advancements(self.get_locations())
333334
reachable_count = len(base_collection_state.reachable_regions[self.player])
334335
start_item = next((item for item in start_items if opens_new_regions(item)), None)
335336

0 commit comments

Comments
 (0)