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