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:
parent
9da2103b7f
commit
b5192e29e9
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue