Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxup committed Mar 24, 2024
1 parent bed5950 commit 69a205c
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions Content.Server/Backmen/Disease/DiseaseSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,16 @@ private void Process(Entity<DiseaseCarrierComponent> 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)
Expand All @@ -179,7 +188,16 @@ private void Process(Entity<DiseaseCarrierComponent> 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());
}

}
}
///
Expand Down

0 comments on commit 69a205c

Please sign in to comment.