mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Make player files saving again
This commit is contained in:
		@@ -462,6 +462,7 @@ Player *ServerEnvironment::loadPlayer(const std::string &playername)
 | 
			
		||||
			return NULL;
 | 
			
		||||
		}
 | 
			
		||||
		testplayer.deSerialize(is, path);
 | 
			
		||||
		is.close();
 | 
			
		||||
		if (testplayer.getName() == playername) {
 | 
			
		||||
			*player = testplayer;
 | 
			
		||||
			found = true;
 | 
			
		||||
 
 | 
			
		||||
@@ -314,6 +314,7 @@ void RemotePlayer::save(std::string savedir)
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
		testplayer.deSerialize(is, path);
 | 
			
		||||
		is.close();
 | 
			
		||||
		if (strcmp(testplayer.getName(), m_name) == 0) {
 | 
			
		||||
			// Open file and serialize
 | 
			
		||||
			std::ostringstream ss(std::ios_base::binary);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user