mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
fixed non-living entities lingering for a second after being kill()ed
only living entities should have death animation time
This commit is contained in:
@ -1649,7 +1649,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
|
||||
if(!$this->isAlive() and $this->spawned){
|
||||
$this->deadTicks += $tickDiff;
|
||||
if($this->deadTicks >= 20){
|
||||
if($this->deadTicks >= $this->maxDeadTicks){
|
||||
$this->despawnFromAll();
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user