Trying to set temperature below TCMB sets it to TCMB.

This commit is contained in:
Víctor Aguilera Puerto
2020-08-02 20:38:10 +02:00
parent 082a5945e3
commit a8fcaf9bb3

View File

@@ -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);
}
}