mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Fix player not dying when beated to death by other player
This commit is contained in:
@@ -4307,13 +4307,12 @@ void Server::HandlePlayerHP(Player *player, s16 damage)
|
||||
if(srp->m_respawn_active)
|
||||
return;
|
||||
|
||||
if(damage == 0)
|
||||
return;
|
||||
|
||||
if(player->hp > damage)
|
||||
{
|
||||
if(damage != 0){
|
||||
player->hp -= damage;
|
||||
SendPlayerHP(player);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user