mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-22 19:06:35 +00:00
Fixed #2052
This commit is contained in:
parent
f140fef52d
commit
020351e20f
@ -2061,7 +2061,7 @@ class Server{
|
|||||||
|
|
||||||
TimingsHandler::tick();
|
TimingsHandler::tick();
|
||||||
|
|
||||||
$updateTime = $tickTime - $this->tickTime;
|
$updateTime = max(0.01, $tickTime - $this->tickTime);
|
||||||
|
|
||||||
array_shift($this->tickAverage);
|
array_shift($this->tickAverage);
|
||||||
$this->tickAverage[] = 1 / $updateTime;
|
$this->tickAverage[] = 1 / $updateTime;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user