mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Remove block file from disk when saved to database
This commit is contained in:
		@@ -3397,6 +3397,9 @@ void ServerMap::loadBlock(std::string sectordir, std::string blockfile, MapSecto
 | 
			
		||||
		if(version < SER_FMT_VER_HIGHEST || save_after_load)
 | 
			
		||||
		{
 | 
			
		||||
			saveBlock(block);
 | 
			
		||||
			
 | 
			
		||||
			// Should be in database now, so delete the old file
 | 
			
		||||
			fs::RecursiveDelete(fullpath);
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		// We just loaded it from the disk, so it's up-to-date.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user