From 0fa68c6e32eb096a468ad599e27e68d0d344f74b Mon Sep 17 00:00:00 2001 From: Nate Bowman Date: Thu, 5 Nov 2026 23:01:52 -0500 Subject: [PATCH] Fix bug in gather rate decrease scheduling Variable next_decrease can be 0 if the decrease should happen right now, which caused the previous conditional to evaluate as False when it should not have --- aoe/world.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aoe/world.py b/aoe/world.py index 491cfbc..75cd9e9 100644 --- a/aoe/world.py +++ b/aoe/world.py @@ -86,7 +86,7 @@ class World(): next_decrease = self.gather.compute_next_gather_rate_decrease(task, self.villager_tasks[task]) - if next_decrease: + if next_decrease is not None: next_decrease += self.current_time if task == Tasks.FARM: self.events[next_decrease].append((self._remove_farm, ()))