mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Preserve immortal group for players when damage is disabled
This commit is contained in:
parent
fd1c1a755e
commit
a01a02f7a1
4 changed files with 14 additions and 4 deletions
|
@ -1349,7 +1349,7 @@ void Server::SendPlayerHPOrDie(PlayerSAO *playersao, const PlayerHPChangeReason
|
|||
return;
|
||||
|
||||
session_t peer_id = playersao->getPeerID();
|
||||
bool is_alive = playersao->getHP() > 0;
|
||||
bool is_alive = !playersao->isDead();
|
||||
|
||||
if (is_alive)
|
||||
SendPlayerHP(peer_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue