mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 11:31:49 +00:00
Server: remove redundant return value from tick()
This commit is contained in:
parent
a02f178f80
commit
2731fc3d0f
@ -2479,10 +2479,10 @@ class Server{
|
|||||||
/**
|
/**
|
||||||
* Tries to execute a server tick
|
* Tries to execute a server tick
|
||||||
*/
|
*/
|
||||||
private function tick() : bool{
|
private function tick() : void{
|
||||||
$tickTime = microtime(true);
|
$tickTime = microtime(true);
|
||||||
if(($tickTime - $this->nextTick) < -0.025){ //Allow half a tick of diff
|
if(($tickTime - $this->nextTick) < -0.025){ //Allow half a tick of diff
|
||||||
return false;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Timings::$serverTickTimer->startTiming();
|
Timings::$serverTickTimer->startTiming();
|
||||||
@ -2576,8 +2576,6 @@ class Server{
|
|||||||
}else{
|
}else{
|
||||||
$this->nextTick += 0.05;
|
$this->nextTick += 0.05;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user