summaryrefslogtreecommitdiff
path: root/src/EventRunner.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/EventRunner.php')
-rw-r--r--src/EventRunner.php2
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');