diff options
author | red-001 <red-001@outlook.ie> | 2017-01-21 15:11:55 +0000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-01-21 16:11:55 +0100 |
commit | 72535d33281ed4c863013590e5fd032c39f0b781 (patch) | |
tree | 7c19e3cbf592bce10bd91566f66489f62d8c1b7d /src/server.cpp | |
parent | 0eede97af2927dcda3545192403b0a44f30bcd1f (diff) | |
download | minetest-72535d33281ed4c863013590e5fd032c39f0b781.tar.gz minetest-72535d33281ed4c863013590e5fd032c39f0b781.tar.bz2 minetest-72535d33281ed4c863013590e5fd032c39f0b781.zip |
Detach the player from entities on death. (#5077)
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp index 1656b9f5a..1e5704042 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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; |