some infinite chunk loading tweaks

This commit is contained in:
GameHerobrine 2023-02-25 10:45:21 +03:00
parent 16ba004fd6
commit 844caa3687
4 changed files with 16 additions and 11 deletions

View file

@ -492,12 +492,12 @@ class Entity extends Position
if($this->closed === true){
return false;
}
$now = microtime(true);
if($this->check === false){
$this->lastUpdate = $now;
return;
}
$tdiff = $now - $this->lastUpdate;
if($this->tickCounter === 0){
$this->tickCounter = 1;