fix SteadyGreenhouses compat
This commit is contained in:
@@ -97,8 +97,11 @@ public readonly record struct BeehiveStats
|
|||||||
private static float GetTemperature(ClimateCondition climate, bool isGreenhouse)
|
private static float GetTemperature(ClimateCondition climate, bool isGreenhouse)
|
||||||
{
|
{
|
||||||
float currentTemperature = climate?.Temperature ?? 20f;
|
float currentTemperature = climate?.Temperature ?? 20f;
|
||||||
if (isGreenhouse)
|
|
||||||
currentTemperature += 5;
|
if (!isGreenhouse)
|
||||||
|
return currentTemperature;
|
||||||
|
|
||||||
|
currentTemperature += 5;
|
||||||
|
|
||||||
if (OrekiWoofsBeehivesModSystem.IsSteadyGreenhousesLoaded)
|
if (OrekiWoofsBeehivesModSystem.IsSteadyGreenhousesLoaded)
|
||||||
return Math.Max(currentTemperature, Config.Instance.MaxTemperatureGrowth);
|
return Math.Max(currentTemperature, Config.Instance.MaxTemperatureGrowth);
|
||||||
|
|||||||
Reference in New Issue
Block a user