Cleaned up if check inside GetWeatherValuesBySeason

This commit is contained in:
Chomp
2025-09-29 13:31:25 +01:00
parent 5efe5e8c4e
commit 4a1061d183
@@ -90,8 +90,7 @@ public class WeatherGenerator(
protected SeasonalValues GetWeatherValuesBySeason(Season currentSeason)
{
var result = WeatherConfig.Weather.SeasonValues.TryGetValue(currentSeason.ToString(), out var value);
if (!result)
if (!WeatherConfig.Weather.SeasonValues.TryGetValue(currentSeason.ToString(), out var value))
{
return WeatherConfig.Weather.SeasonValues["default"];
}