Private
Public Access
1
0

fix SteadyGreenhouses compat

This commit is contained in:
2026-03-21 01:57:23 +01:00
parent f394124771
commit d43a860441

View File

@@ -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);