mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Core: recache all locations before locality rules
Some worlds would not trigger a recache, causing locations to be missed when setting locality rules.
This commit is contained in:
4
Main.py
4
Main.py
@@ -122,6 +122,10 @@ def main(args, seed=None, baked_server_options: Optional[Dict[str, object]] = No
|
|||||||
logger.info('Creating Items.')
|
logger.info('Creating Items.')
|
||||||
AutoWorld.call_all(world, "create_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.')
|
logger.info('Calculating Access Rules.')
|
||||||
|
|
||||||
for player in world.player_ids:
|
for player in world.player_ids:
|
||||||
|
Reference in New Issue
Block a user