fixed entities despawning too soon when killed

This commit is contained in:
Dylan K. Taylor 2017-10-19 13:39:10 +01:00
parent 584810780a
commit 4821e7386d

View File

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