]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Thermomachines now excite the gas mixture they add heat to (#25916)
authorMenshin <Menshin@users.noreply.github.com>
Thu, 7 Mar 2024 21:05:43 +0000 (22:05 +0100)
committerGitHub <noreply@github.com>
Thu, 7 Mar 2024 21:05:43 +0000 (13:05 -0800)
Atmospherics thermomachines now properly invalidate tiles they add heat to.

Content.Server/Atmos/Piping/Unary/EntitySystems/GasThermoMachineSystem.cs

index d376c6d9d6ef05b55039973856194b495b2f4810..d4ddd65a8ec9de7267730484cbbb938dff9438d0 100644 (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
             {