Thermomachines now excite the gas mixture they add heat to (#25916)

Atmospherics thermomachines now properly invalidate tiles they add heat to.
This commit is contained in:
Menshin
2024-03-07 22:05:43 +01:00
committed by GitHub
parent 937238fa67
commit 1e62e445f0

View File

@@ -110,7 +110,7 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems
_atmosphereSystem.AddHeat(heatExchangeGasMixture, dQPipe);
thermoMachine.LastEnergyDelta = dQPipe;
if (dQLeak != 0f && _atmosphereSystem.GetContainingMixture(uid) is { } containingMixture)
if (dQLeak != 0f && _atmosphereSystem.GetContainingMixture(uid, excite: true) is { } containingMixture)
_atmosphereSystem.AddHeat(containingMixture, dQLeak);
}
@@ -126,7 +126,7 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems
heatExchangeGasMixture = null;
if (thermoMachine.Atmospheric)
{
heatExchangeGasMixture = _atmosphereSystem.GetContainingMixture(uid);
heatExchangeGasMixture = _atmosphereSystem.GetContainingMixture(uid, excite: true);
}
else
{