Don't load current map if it doesn't exist
This commit is contained in:
		
							parent
							
								
									3b156d8275
								
							
						
					
					
						commit
						8012a20ddb
					
				| @ -52,7 +52,8 @@ class Conquest(commands.Cog): | ||||
|         self.asset_path = bundled_data_path(self) / "assets" | ||||
|         self.current_map = await self.config.current_map() | ||||
| 
 | ||||
|         await self.current_map_load() | ||||
|         if self.current_map: | ||||
|             await self.current_map_load() | ||||
| 
 | ||||
|     async def current_map_load(self): | ||||
|         map_data_path = self.asset_path / self.current_map / "data.json" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 bobloy
						bobloy