From 724074426e26afa3aa13c0fe7ac5f66c576c7c23 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Wed, 9 Nov 2022 08:58:07 +1300 Subject: [PATCH] Fix miasma error spam (#12458) --- Content.Server/Atmos/Miasma/MiasmaSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Atmos/Miasma/MiasmaSystem.cs b/Content.Server/Atmos/Miasma/MiasmaSystem.cs index d14602a248..3dd465acef 100644 --- a/Content.Server/Atmos/Miasma/MiasmaSystem.cs +++ b/Content.Server/Atmos/Miasma/MiasmaSystem.cs @@ -161,7 +161,7 @@ namespace Content.Server.Atmos.Miasma { if (HasComp(uid)) return; - bool decompose = (args.CurrentTemperature > 274f); + bool decompose = (args.CurrentTemperature > Atmospherics.T0C + 0.85f); ToggleDecomposition(uid, decompose); } @@ -246,7 +246,7 @@ namespace Content.Server.Atmos.Miasma public void ToggleDecomposition(EntityUid uid, bool decompose, PerishableComponent? perishable = null) { - if (Terminating(uid) || !Resolve(uid, ref perishable)) + if (Terminating(uid) || !Resolve(uid, ref perishable, false)) return; if (decompose == perishable.Progressing) // Saved a few cycles