remove removed shop locations from relevant caches

This commit is contained in:
Fabian Dill 2021-01-11 04:06:25 +01:00
parent 3a99aedf89
commit 322feb37f0
1 changed files with 6 additions and 1 deletions

View File

@ -263,6 +263,11 @@ def main(args, seed=None):
logger.info('Patching ROM.')
# remove locations that may no longer exist from caches, by flushing them entirely
if shop_slots:
world.clear_location_cache()
world._location_cache = {}
outfilebase = 'BM_%s' % (args.outputname if args.outputname else world.seed)
rom_names = []