mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
extended death animation time
This commit is contained in:
parent
4821e7386d
commit
11cc20972f
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user