mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->lastUpdate = $currentTick;
|
||||||
|
|
||||||
if(!$this->isAlive()){
|
if(!$this->isAlive()){
|
||||||
$this->deadTicks += $tickDiff;
|
$this->deadTicks += $tickDiff;
|
||||||
if($this->deadTicks >= 10){
|
if($this->deadTicks >= 10){
|
||||||
@ -1299,7 +1301,6 @@ abstract class Entity extends Location implements Metadatable{
|
|||||||
return $this->deadTicks < 10;
|
return $this->deadTicks < 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lastUpdate = $currentTick;
|
|
||||||
|
|
||||||
$this->timings->startTiming();
|
$this->timings->startTiming();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user