forked from Mirrorlandia_minetest/minetest
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
@ -1335,7 +1335,7 @@ void Server::handleCommand_Respawn(NetworkPacket* pkt)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!player->isDead() || !g_settings->getBool("enable_damage"))
|
||||
if (!player->isDead())
|
||||
return;
|
||||
|
||||
RespawnPlayer(pkt->getPeerId());
|
||||
|
Loading…
Reference in New Issue
Block a user