Server: remove redundant return value from tick()

This commit is contained in:
Dylan K. Taylor 2018-05-01 12:17:11 +01:00
parent a02f178f80
commit 2731fc3d0f

View File

@ -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;
} }
/** /**