mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Don't handle PlayerPos packet coming from client if player is dead
This commit is contained in:
@@ -555,6 +555,11 @@ void Server::handleCommand_PlayerPos(NetworkPacket* pkt)
|
||||
return;
|
||||
}
|
||||
|
||||
// If player is dead we don't care of this packet
|
||||
if (player->hp == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
PlayerSAO *playersao = player->getPlayerSAO();
|
||||
if (playersao == NULL) {
|
||||
errorstream << "Server::ProcessData(): Cancelling: "
|
||||
|
Reference in New Issue
Block a user