From 80c66c02bedf47da0b96d4aec0594d3a286c1b74 Mon Sep 17 00:00:00 2001 From: Lordbrandon12 <107556696+Lordbrandon12@users.noreply.github.com> Date: Tue, 7 Oct 2025 09:42:43 -0300 Subject: [PATCH] =?UTF-8?q?changes=20the=20min=20and=20max=20variables=20i?= =?UTF-8?q?n=20the=20TargetTemperature=20clamp=20to=20t=E2=80=A6=20(#40453?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit changes the min and max variables in the TargetTemperature clamp to the space heater min and max temperatures --- Content.Server/Atmos/Portable/SpaceHeaterSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/Atmos/Portable/SpaceHeaterSystem.cs b/Content.Server/Atmos/Portable/SpaceHeaterSystem.cs index 1c05307c15..0d55ed12bd 100644 --- a/Content.Server/Atmos/Portable/SpaceHeaterSystem.cs +++ b/Content.Server/Atmos/Portable/SpaceHeaterSystem.cs @@ -112,7 +112,9 @@ public sealed class SpaceHeaterSystem : EntitySystem if (!TryComp(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);