1
0

Merge pull request #3633 from cuberite/player_detach

Detach player from entity / object if he is dead
This commit is contained in:
Lukas Pioch 2017-03-19 15:11:24 +01:00 committed by GitHub
commit 836c9cf039

View File

@ -1042,6 +1042,10 @@ void cPlayer::KilledBy(TakeDamageInfo & a_TDI)
m_bVisible = false; // So new clients don't see the player
// Detach player from object / entity. If the player dies, the server still says
// that the player is attached to the entity / object
Detach();
// Puke out all the items
cItems Pickups;
m_Inventory.CopyToItems(Pickups);