mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
fixed entities despawning too soon when killed
This commit is contained in:
parent
584810780a
commit
4821e7386d
@ -1288,6 +1288,8 @@ abstract class Entity extends Location implements Metadatable{
|
||||
return true;
|
||||
}
|
||||
|
||||
$this->lastUpdate = $currentTick;
|
||||
|
||||
if(!$this->isAlive()){
|
||||
$this->deadTicks += $tickDiff;
|
||||
if($this->deadTicks >= 10){
|
||||
@ -1299,7 +1301,6 @@ abstract class Entity extends Location implements Metadatable{
|
||||
return $this->deadTicks < 10;
|
||||
}
|
||||
|
||||
$this->lastUpdate = $currentTick;
|
||||
|
||||
$this->timings->startTiming();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user