mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
some infinite chunk loading tweaks
This commit is contained in:
parent
16ba004fd6
commit
844caa3687
4 changed files with 16 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue