1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-23 08:08:47 -05: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:
Loic Blot 2015-03-16 10:01:56 +01:00
parent b2801d8127
commit aaf26b3a44

View File

@ -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());