forked from Mirrorlandia_minetest/minetest
Don't handle PlayerPos packet coming from client if player is dead
This commit is contained in:
parent
6ce0985f47
commit
3067d78216
@ -555,6 +555,11 @@ void Server::handleCommand_PlayerPos(NetworkPacket* pkt)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If player is dead we don't care of this packet
|
||||||
|
if (player->hp == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
PlayerSAO *playersao = player->getPlayerSAO();
|
PlayerSAO *playersao = player->getPlayerSAO();
|
||||||
if (playersao == NULL) {
|
if (playersao == NULL) {
|
||||||
errorstream << "Server::ProcessData(): Cancelling: "
|
errorstream << "Server::ProcessData(): Cancelling: "
|
||||||
|
Loading…
Reference in New Issue
Block a user