mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
extended death animation time
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user