extended death animation time

This commit is contained in:
Dylan K. Taylor 2017-10-19 13:39:51 +01:00
parent 4821e7386d
commit 11cc20972f
2 changed files with 3 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 >= 10){
if($this->deadTicks >= 20){
$this->despawnFromAll();
}
return true;

View File

@ -1292,13 +1292,13 @@ abstract class Entity extends Location implements Metadatable{
if(!$this->isAlive()){
$this->deadTicks += $tickDiff;
if($this->deadTicks >= 10){
if($this->deadTicks >= 20){
$this->despawnFromAll();
if(!$this->isPlayer){
$this->close();
}
}
return $this->deadTicks < 10;
return $this->deadTicks < 20;
}