Fix bad analysis with nullables in Rider.
This commit is contained in:
@@ -108,11 +108,9 @@ namespace Content.Shared.Chemistry.Components
|
|||||||
if (!IoCManager.Resolve<IPrototypeManager>().TryIndex(reagentId, out ReagentPrototype? proto))
|
if (!IoCManager.Resolve<IPrototypeManager>().TryIndex(reagentId, out ReagentPrototype? proto))
|
||||||
proto = new ReagentPrototype();
|
proto = new ReagentPrototype();
|
||||||
|
|
||||||
if (temperature == null)
|
var actualTemp = temperature ?? Temperature;
|
||||||
temperature = Temperature;
|
|
||||||
|
|
||||||
var oldThermalEnergy = Temperature * GetHeatCapacity();
|
var oldThermalEnergy = Temperature * GetHeatCapacity();
|
||||||
var addedThermalEnergy = (float) ((float) quantity * proto.SpecificHeat * temperature);
|
var addedThermalEnergy = (float) quantity * proto.SpecificHeat * actualTemp;
|
||||||
for (var i = 0; i < Contents.Count; i++)
|
for (var i = 0; i < Contents.Count; i++)
|
||||||
{
|
{
|
||||||
var reagent = Contents[i];
|
var reagent = Contents[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user