From: sapier Date: Sun, 29 Jun 2014 15:55:21 +0000 (+0200) Subject: Don't spam server console on player/playersao error but just drop the affected client X-Git-Tag: 0.4.10~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ff36071d93266c1dd18708f8924d80aa1af5b33e;p=oweals%2Fminetest.git Don't spam server console on player/playersao error but just drop the affected client --- diff --git a/src/server.cpp b/src/server.cpp index 122ea993d..1223136b4 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1789,18 +1789,20 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) } Player *player = m_env->getPlayer(peer_id); - if(player == NULL){ + if(player == NULL) { errorstream<<"Server::ProcessData(): Cancelling: " "No player for peer_id="<getPlayerSAO(); - if(playersao == NULL){ + if(playersao == NULL) { errorstream<<"Server::ProcessData(): Cancelling: " "No player object for peer_id="<