mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Set nextTick on start
This commit is contained in:
parent
fb03df3d06
commit
a4769248fb
@ -2184,6 +2184,7 @@ class Server{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function tickProcessor(){
|
private function tickProcessor(){
|
||||||
|
$this->nextTick = microtime(true);
|
||||||
while($this->isRunning){
|
while($this->isRunning){
|
||||||
$this->tick();
|
$this->tick();
|
||||||
$next = $this->nextTick - 0.001;
|
$next = $this->nextTick - 0.001;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user