diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index 4f0b1b8c8..f88bf4837 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -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); + } } }