mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Time less than target fix
This commit is contained in:
parent
0ddf396b08
commit
563f7404fe
@ -2186,7 +2186,10 @@ class Server{
|
||||
private function tickProcessor(){
|
||||
while($this->isRunning){
|
||||
$this->tick();
|
||||
time_sleep_until($this->nextTick - 0.001);
|
||||
$next = $this->nextTick - 0.001;
|
||||
if($next > microtime(true)){
|
||||
time_sleep_until($next);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user