diff --git a/Content.Server/Backmen/Disease/DiseaseSystem.cs b/Content.Server/Backmen/Disease/DiseaseSystem.cs index 241a0557be8..b31b723dac6 100644 --- a/Content.Server/Backmen/Disease/DiseaseSystem.cs +++ b/Content.Server/Backmen/Disease/DiseaseSystem.cs @@ -169,7 +169,16 @@ private void Process(Entity owner, float frameTime, int { if (!cure.Stages.Contains(stage)) continue; - RaiseLocalEvent(owner, cure.GenerateEvent(owner,disease.ID)); + + try + { + RaiseLocalEvent(owner, cure.GenerateEvent(owner, disease.ID)); + } + catch (Exception err) + { + Log.Error(err.ToString()); + } + } if (!doEffects) @@ -179,7 +188,16 @@ private void Process(Entity owner, float frameTime, int { if (!effect.Stages.Contains(stage) || !_random.Prob(effect.Probability)) continue; - RaiseLocalEvent(owner, effect.GenerateEvent(owner,disease.ID)); + + try + { + RaiseLocalEvent(owner, effect.GenerateEvent(owner,disease.ID)); + } + catch (Exception e) + { + Log.Error(e.ToString()); + } + } } ///