changes the min and max variables in the TargetTemperature clamp to t… (#40453)

changes the min and max variables in the TargetTemperature clamp to the space heater min and max temperatures
This commit is contained in:
Lordbrandon12
2025-10-07 09:42:43 -03:00
committed by GitHub
parent 691ca31b95
commit 80c66c02be

View File

@@ -112,7 +112,9 @@ public sealed class SpaceHeaterSystem : EntitySystem
if (!TryComp<GasThermoMachineComponent>(uid, out var thermoMachine)) if (!TryComp<GasThermoMachineComponent>(uid, out var thermoMachine))
return; 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); UpdateAppearance(uid);
DirtyUI(uid, spaceHeater); DirtyUI(uid, spaceHeater);