mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Detach the player from entities on death. (#5077)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user