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
This commit is contained in:
Nate Bowman
2026-11-05 23:01:52 -05:00
parent c74fe5e451
commit 0fa68c6e32

View File

@@ -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, ()))