mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 02:09:42 +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(){
|
private function tickProcessor(){
|
||||||
while($this->isRunning){
|
while($this->isRunning){
|
||||||
$this->tick();
|
$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