From c4438c7a944270065b4d356179dc836ff3ae275b Mon Sep 17 00:00:00 2001 From: AJCM-git <60196617+AJCM-git@users.noreply.github.com> Date: Wed, 9 Nov 2022 12:59:15 -0400 Subject: [PATCH] Fix rotting examine (#12488) * commit * actually i think this is better --- Content.Server/Atmos/Miasma/MiasmaSystem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Server/Atmos/Miasma/MiasmaSystem.cs b/Content.Server/Atmos/Miasma/MiasmaSystem.cs index 514a85183e..80a2ae29bd 100644 --- a/Content.Server/Atmos/Miasma/MiasmaSystem.cs +++ b/Content.Server/Atmos/Miasma/MiasmaSystem.cs @@ -179,8 +179,12 @@ namespace Content.Server.Atmos.Miasma /// private bool IsRotting(PerishableComponent perishable, MetaDataComponent? metadata = null) { + if (perishable.TimeOfDeath == TimeSpan.Zero) + return false; + if (_timing.CurTime >= perishable.TimeOfDeath + perishable.RotAfter + _metaDataSystem.GetPauseTime(perishable.Owner, metadata)) return true; + return false; }