mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Fixed possible issues with tick counters being inaccurate when the server lags
This commit is contained in:
@ -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){
|
||||
|
Reference in New Issue
Block a user