From 86fb450ecc25a68f2eea0fb9959ab94bd5fa36df Mon Sep 17 00:00:00 2001 From: espeon65536 Date: Mon, 23 Jan 2023 23:11:07 -0600 Subject: [PATCH] Core: recache all locations before locality rules Some worlds would not trigger a recache, causing locations to be missed when setting locality rules. --- Main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Main.py b/Main.py index cbef89a4..983874f5 100644 --- a/Main.py +++ b/Main.py @@ -122,6 +122,10 @@ def main(args, seed=None, baked_server_options: Optional[Dict[str, object]] = No logger.info('Creating Items.') AutoWorld.call_all(world, "create_items") + # All worlds should have finished creating all regions, locations, and entrances. + # Recache to ensure that they are all visible for locality rules. + world._recache() + logger.info('Calculating Access Rules.') for player in world.player_ids: