Fix Whoopie Cushions from lagging the game. (#39194)
This commit is contained in:
committed by
GitHub
parent
2b8145ce87
commit
ce7b7c1adf
@@ -202,6 +202,10 @@ public sealed partial class StatusEffectsSystem : EntitySystem
|
||||
)
|
||||
{
|
||||
statusEffect = null;
|
||||
|
||||
if (duration <= TimeSpan.Zero)
|
||||
return false;
|
||||
|
||||
if (!CanAddStatusEffect(target, effectProto))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user