diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-01-02 20:42:01 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-01-05 12:33:59 +0100 |
commit | b21316248572cb27ed1f504529ad6680a473022e (patch) | |
tree | f8a2f81258cae3b1d2429fb7df5a3287954b683a /src/EventRunner.php | |
parent | f621d95f89ded05a2e916c5ee363bfe75ea37482 (diff) |
gemini
Diffstat (limited to 'src/EventRunner.php')
-rw-r--r-- | src/EventRunner.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EventRunner.php b/src/EventRunner.php index 7dd773d..2f2fd8b 100644 --- a/src/EventRunner.php +++ b/src/EventRunner.php @@ -82,7 +82,7 @@ class EventRunner } $diff = (new \DateTime())->diff($lastTick); - $tickMultiplier = $diff->i; + $tickMultiplier = $diff->i + 60*$diff->h + 60*24*$diff->d; if ($tickMultiplier > 0) { $villages = DB::fetch(Village::class, 'select id,wood,clay,iron,food from villages'); |