changes the min and max variables in the TargetTemperature clamp to the space heater min and max temperatures
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);