From b21316248572cb27ed1f504529ad6680a473022e Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 2 Jan 2024 20:42:01 +0100 Subject: gemini --- src/EventRunner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/EventRunner.php') 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'); -- cgit v1.2.3