mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
If player is dead, permit it to respawn, even if damages are not enabled
* Mods can do setHP function to do damages and override the enable_damage value sometimes
This commit is contained in:
parent
b2801d8127
commit
aaf26b3a44
1 changed files with 1 additions and 1 deletions
|
@ -1335,7 +1335,7 @@ void Server::handleCommand_Respawn(NetworkPacket* pkt)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!player->isDead() || !g_settings->getBool("enable_damage"))
|
if (!player->isDead())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
RespawnPlayer(pkt->getPeerId());
|
RespawnPlayer(pkt->getPeerId());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue