remove removed shop locations from relevant caches
This commit is contained in:
		
							parent
							
								
									3a99aedf89
								
							
						
					
					
						commit
						322feb37f0
					
				
							
								
								
									
										5
									
								
								Main.py
								
								
								
								
							
							
						
						
									
										5
									
								
								Main.py
								
								
								
								
							| 
						 | 
				
			
			@ -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 = []
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue