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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user