add a type specifier where one was forgor (#29250)

* add a type specifier where one was forgor

* Fix other way because degub conditions

* okay this feels kinda dumb but it does fix it.

* Update Content.Client/Effects/ColorFlashEffectSystem.cs

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
IProduceWidgets
2024-06-20 06:04:07 -04:00
committed by GitHub
parent c1948d88d8
commit 4bf6d9e171

View File

@@ -109,12 +109,12 @@ public sealed class ColorFlashEffectSystem : SharedColorFlashEffectSystem
continue; continue;
} }
#if DEBUG
if (!TryComp(ent, out ColorFlashEffectComponent? comp)) if (!TryComp(ent, out ColorFlashEffectComponent? comp))
{ {
#if DEBUG
DebugTools.Assert(!_animation.HasRunningAnimation(ent, AnimationKey)); DebugTools.Assert(!_animation.HasRunningAnimation(ent, AnimationKey));
}
#endif #endif
}
_animation.Stop(ent, AnimationKey); _animation.Stop(ent, AnimationKey);
var animation = GetDamageAnimation(ent, color, sprite); var animation = GetDamageAnimation(ent, color, sprite);
@@ -124,7 +124,7 @@ public sealed class ColorFlashEffectSystem : SharedColorFlashEffectSystem
continue; continue;
} }
comp = EnsureComp<ColorFlashEffectComponent>(ent); EnsureComp<ColorFlashEffectComponent>(ent, out comp);
comp.NetSyncEnabled = false; comp.NetSyncEnabled = false;
comp.Color = sprite.Color; comp.Color = sprite.Color;