From b36e0c22825527e1c6108470fe7a96ef1fa956b0 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 16 Oct 2024 18:30:04 +0100 Subject: [PATCH] Fixed `calculateGameTime()` not correctly handling `overrideSeason` property --- project/src/generators/WeatherGenerator.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/project/src/generators/WeatherGenerator.ts b/project/src/generators/WeatherGenerator.ts index aacebe4f..b29b906d 100644 --- a/project/src/generators/WeatherGenerator.ts +++ b/project/src/generators/WeatherGenerator.ts @@ -46,9 +46,10 @@ export class WeatherGenerator { data.time = this.getBsgFormattedInRaidTime(); data.acceleration = this.weatherConfig.acceleration; - data.season = this.weatherConfig.overrideSeason - ? this.weatherConfig.overrideSeason - : this.seasonalEventService.getActiveWeatherSeason(); + data.season = + this.weatherConfig.overrideSeason !== null + ? this.weatherConfig.overrideSeason + : this.seasonalEventService.getActiveWeatherSeason(); return data; }