From 0699b5be9b6de5196c5d9f759da87144c5019161 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 16 Oct 2024 18:36:49 +0100 Subject: [PATCH] Fixed `generateLocal()` not utilising season override --- project/src/controllers/WeatherController.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/project/src/controllers/WeatherController.ts b/project/src/controllers/WeatherController.ts index b7d034bc..b7ac7013 100644 --- a/project/src/controllers/WeatherController.ts +++ b/project/src/controllers/WeatherController.ts @@ -41,9 +41,12 @@ export class WeatherController { return this.weatherHelper.getInRaidTime(); } - public generateLocal(sesssionID: string): IGetLocalWeatherResponseData { + public generateLocal(sesssionId: string): IGetLocalWeatherResponseData { const result: IGetLocalWeatherResponseData = { - season: this.seasonalEventService.getActiveWeatherSeason(), + season: + this.weatherConfig.overrideSeason !== null + ? this.weatherConfig.overrideSeason + : this.seasonalEventService.getActiveWeatherSeason(), weather: [], };