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