Trying to set temperature below TCMB sets it to TCMB.
This commit is contained in:
parent
082a5945e3
commit
a8fcaf9bb3
|
|
@ -102,11 +102,8 @@ namespace Content.Server.Atmos
|
|||
get => _temperature;
|
||||
set
|
||||
{
|
||||
if(value < Atmospherics.TCMB)
|
||||
throw new Exception($"Tried to set gas temperature below CMB! Value: {value}");
|
||||
|
||||
if (Immutable) return;
|
||||
_temperature = value;
|
||||
_temperature = MathF.Max(value, Atmospherics.TCMB);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue