Cleaned up if check inside GetWeatherValuesBySeason
This commit is contained in:
@@ -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"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user