Fix LightBehaviourComponent stinky warning.
This commit is contained in:
@@ -391,7 +391,9 @@ namespace Content.Client.Light.Components
|
|||||||
base.Startup();
|
base.Startup();
|
||||||
|
|
||||||
CopyLightSettings();
|
CopyLightSettings();
|
||||||
Owner.EnsureComponentWarn<AnimationPlayerComponent>();
|
|
||||||
|
// TODO: Do NOT ensure component here. And use eventbus events instead...
|
||||||
|
Owner.EnsureComponent<AnimationPlayerComponent>();
|
||||||
|
|
||||||
if (Owner.TryGetComponent(out AnimationPlayerComponent? animation))
|
if (Owner.TryGetComponent(out AnimationPlayerComponent? animation))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user