mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +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
|
||||
*/
|
||||
private function tick() : bool{
|
||||
private function tick() : void{
|
||||
$tickTime = microtime(true);
|
||||
if(($tickTime - $this->nextTick) < -0.025){ //Allow half a tick of diff
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
Timings::$serverTickTimer->startTiming();
|
||||
@ -2576,8 +2576,6 @@ class Server{
|
||||
}else{
|
||||
$this->nextTick += 0.05;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user