Living: Despawn in endDeathAnimation()

this removes the necessity for the player to do this.
This commit is contained in:
Dylan K. Taylor
2019-01-05 12:46:11 +00:00
parent f7f7be896e
commit b22a2ef914
2 changed files with 2 additions and 5 deletions

View File

@ -3625,10 +3625,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
}
protected function onDeathUpdate(int $tickDiff) : bool{
if(parent::onDeathUpdate($tickDiff)){
$this->despawnFromAll(); //non-player entities rely on close() to do this for them
}
parent::onDeathUpdate($tickDiff);
return false; //never flag players for despawn
}