Skip to content

Commit

Permalink
Added dead-check back
Browse files Browse the repository at this point in the history
  • Loading branch information
Memeji authored Aug 17, 2024
1 parent 01e434a commit 0a996fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Content.Server/FloofStation/Traits/LewdTraitSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ public override void Update(float frameTime)

containerCum.NextGrowth = now + containerCum.GrowthDelay;

if (_mobState.IsDead(uid))
continue;

if (EntityManager.TryGetComponent(uid, out HungerComponent? hunger))
{
if (_hunger.GetHungerThreshold(hunger) < HungerThreshold.Okay)
Expand All @@ -300,6 +303,9 @@ public override void Update(float frameTime)

containerMilk.NextGrowth = now + containerMilk.GrowthDelay;

if (_mobState.IsDead(uid))
continue;

if (EntityManager.TryGetComponent(uid, out HungerComponent? hunger))
{
if (_hunger.GetHungerThreshold(hunger) < HungerThreshold.Okay)
Expand Down

0 comments on commit 0a996fa

Please sign in to comment.