mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Fix on_successful_save -> onSuccessfulSave
This commit is contained in:
		@@ -106,7 +106,7 @@ void PlayerDatabaseFiles::savePlayer(RemotePlayer *player)
 | 
			
		||||
		infostream << "Failed to write " << path << std::endl;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	player->on_successful_save();
 | 
			
		||||
	player->onSuccessfulSave();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool PlayerDatabaseFiles::removePlayer(const std::string &name)
 | 
			
		||||
 
 | 
			
		||||
@@ -529,7 +529,7 @@ void PlayerDatabasePostgreSQL::savePlayer(RemotePlayer *player)
 | 
			
		||||
	}
 | 
			
		||||
	endSave();
 | 
			
		||||
 | 
			
		||||
	player->on_successful_save();
 | 
			
		||||
	player->onSuccessfulSave();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool PlayerDatabasePostgreSQL::loadPlayer(RemotePlayer *player, PlayerSAO *sao)
 | 
			
		||||
 
 | 
			
		||||
@@ -531,7 +531,7 @@ void PlayerDatabaseSQLite3::savePlayer(RemotePlayer *player)
 | 
			
		||||
 | 
			
		||||
	endSave();
 | 
			
		||||
 | 
			
		||||
	player->on_successful_save();
 | 
			
		||||
	player->onSuccessfulSave();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool PlayerDatabaseSQLite3::loadPlayer(RemotePlayer *player, PlayerSAO *sao)
 | 
			
		||||
 
 | 
			
		||||
@@ -224,7 +224,7 @@ const RemotePlayerChatResult RemotePlayer::canSendChatMessage()
 | 
			
		||||
	return RPLAYER_CHATRESULT_OK;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void RemotePlayer::on_successful_save()
 | 
			
		||||
void RemotePlayer::onSuccessfulSave()
 | 
			
		||||
{
 | 
			
		||||
	setModified(false);
 | 
			
		||||
	if (m_sao)
 | 
			
		||||
 
 | 
			
		||||
@@ -139,7 +139,7 @@ public:
 | 
			
		||||
 | 
			
		||||
	void setPeerId(session_t peer_id) { m_peer_id = peer_id; }
 | 
			
		||||
 | 
			
		||||
	void on_successful_save();
 | 
			
		||||
	void onSuccessfulSave();
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
	/*
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user