Fixed possible issues with tick counters being inaccurate when the server lags

This commit is contained in:
Dylan K. Taylor
2017-07-27 10:57:37 +01:00
parent b3dada4cb9
commit e8be8550a0
2 changed files with 3 additions and 3 deletions

View File

@ -1252,7 +1252,7 @@ abstract class Entity extends Location implements Metadatable{
}
if(!$this->isAlive()){
++$this->deadTicks;
$this->deadTicks += $tickDiff;
if($this->deadTicks >= 10){
$this->despawnFromAll();
if(!$this->isPlayer){