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:
Dylan K. Taylor
2017-10-19 20:51:50 +01:00
parent 0a19a2611a
commit a245615531
3 changed files with 8 additions and 3 deletions

View File

@ -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;