1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Detach the player from entities on death. (#5077)

This commit is contained in:
red-001 2017-01-21 15:11:55 +00:00 committed by Loïc Blot
parent 0eede97af2
commit 72535d3328
5 changed files with 16 additions and 14 deletions

View file

@ -2560,6 +2560,8 @@ void Server::DiePlayer(u16 peer_id)
if (!playersao)
return;
playersao->detachFromParent();
infostream << "Server::DiePlayer(): Player "
<< playersao->getPlayer()->getName()
<< " dies" << std::endl;