Fixed calculateGameTime() not correctly handling overrideSeason property

This commit is contained in:
Dev 2024-10-16 18:30:04 +01:00
parent 6a171919a1
commit b36e0c2282

View File

@ -46,9 +46,10 @@ export class WeatherGenerator {
data.time = this.getBsgFormattedInRaidTime(); data.time = this.getBsgFormattedInRaidTime();
data.acceleration = this.weatherConfig.acceleration; data.acceleration = this.weatherConfig.acceleration;
data.season = this.weatherConfig.overrideSeason data.season =
? this.weatherConfig.overrideSeason this.weatherConfig.overrideSeason !== null
: this.seasonalEventService.getActiveWeatherSeason(); ? this.weatherConfig.overrideSeason
: this.seasonalEventService.getActiveWeatherSeason();
return data; return data;
} }