]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
changes the min and max variables in the TargetTemperature clamp to t… (#40453)
authorLordbrandon12 <107556696+Lordbrandon12@users.noreply.github.com>
Tue, 7 Oct 2025 12:42:43 +0000 (09:42 -0300)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 12:42:43 +0000 (12:42 +0000)
changes the min and max variables in the TargetTemperature clamp to the space heater min and max temperatures

Content.Server/Atmos/Portable/SpaceHeaterSystem.cs

index 1c05307c1589cefaec6eabeb5844262d1da39e3f..0d55ed12bd04e5b3dfca9258d56a6e357b0599d7 100644 (file)
@@ -112,7 +112,9 @@ public sealed class SpaceHeaterSystem : EntitySystem
         if (!TryComp<GasThermoMachineComponent>(uid, out var thermoMachine))
             return;
 
-        thermoMachine.TargetTemperature = float.Clamp(thermoMachine.TargetTemperature + args.Temperature, thermoMachine.MinTemperature, thermoMachine.MaxTemperature);
+        thermoMachine.TargetTemperature = float.Clamp(thermoMachine.TargetTemperature + args.Temperature,
+                                                      spaceHeater.MinTemperature,
+                                                      spaceHeater.MaxTemperature);
 
         UpdateAppearance(uid);
         DirtyUI(uid, spaceHeater);