diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index c997a0987..41409e66f 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -3021,10 +3021,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 } diff --git a/src/pocketmine/entity/Living.php b/src/pocketmine/entity/Living.php index d8b461c36..9fcca5ed4 100644 --- a/src/pocketmine/entity/Living.php +++ b/src/pocketmine/entity/Living.php @@ -670,7 +670,7 @@ abstract class Living extends Entity implements Damageable{ } protected function endDeathAnimation() : void{ - //TODO + $this->despawnFromAll(); } public function entityBaseTick(int $tickDiff = 1) : bool{