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:
parent
0eede97af2
commit
72535d3328
5 changed files with 16 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue