diff --git a/application/core/Callbacks/TimerListening.php b/application/core/Callbacks/TimerListening.php index 1992510f..424d70ae 100644 --- a/application/core/Callbacks/TimerListening.php +++ b/application/core/Callbacks/TimerListening.php @@ -44,7 +44,11 @@ class TimerListening { * Increase last Trigger Time */ public function tick() { - $this->lastTrigger += $this->deltaTime; + if ($this->lastTrigger === null) { + $this->lastTrigger = microtime(true); + } else { + $this->lastTrigger += $this->deltaTime; + } } /**