Update controllers sessionIds
This commit is contained in:
@@ -13,14 +13,14 @@ namespace SPTarkov.Server.Core.Controllers;
|
||||
|
||||
[Injectable]
|
||||
public class WeatherController(
|
||||
ISptLogger<WeatherController> _logger,
|
||||
WeatherGenerator _weatherGenerator,
|
||||
SeasonalEventService _seasonalEventService,
|
||||
RaidWeatherService _raidWeatherService,
|
||||
ConfigServer _configServer
|
||||
ISptLogger<WeatherController> logger,
|
||||
WeatherGenerator weatherGenerator,
|
||||
SeasonalEventService seasonalEventService,
|
||||
RaidWeatherService raidWeatherService,
|
||||
ConfigServer configServer
|
||||
)
|
||||
{
|
||||
protected WeatherConfig _weatherConfig = _configServer.GetConfig<WeatherConfig>();
|
||||
protected WeatherConfig _weatherConfig = configServer.GetConfig<WeatherConfig>();
|
||||
|
||||
/// <summary>
|
||||
/// Handle client/weather
|
||||
@@ -37,8 +37,8 @@ public class WeatherController(
|
||||
Season = Season.AUTUMN,
|
||||
};
|
||||
|
||||
_weatherGenerator.CalculateGameTime(result);
|
||||
result.Weather = _weatherGenerator.GenerateWeather(result.Season.Value);
|
||||
weatherGenerator.CalculateGameTime(result);
|
||||
result.Weather = weatherGenerator.GenerateWeather(result.Season.Value);
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -52,11 +52,11 @@ public class WeatherController(
|
||||
{
|
||||
var result = new GetLocalWeatherResponseData
|
||||
{
|
||||
Season = _seasonalEventService.GetActiveWeatherSeason(),
|
||||
Season = seasonalEventService.GetActiveWeatherSeason(),
|
||||
Weather = [],
|
||||
};
|
||||
|
||||
result.Weather.AddRange(_raidWeatherService.GetUpcomingWeather());
|
||||
result.Weather.AddRange(raidWeatherService.GetUpcomingWeather());
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user