mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Time less than target fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user