Gets rid of all ComponentManager usages. (#4707)
This commit is contained in:
committed by
GitHub
parent
7953e5b962
commit
0be5ff829b
@@ -63,7 +63,7 @@ namespace Content.Client.Light
|
||||
private void HandleAnimationComplete(EntityUid uid, EmergencyLightComponent component, AnimationCompletedEvent args)
|
||||
{
|
||||
if (!component.Enabled ||
|
||||
!ComponentManager.TryGetComponent<AnimationPlayerComponent>(uid, out var playerComponent)) return;
|
||||
!EntityManager.TryGetComponent<AnimationPlayerComponent>(uid, out var playerComponent)) return;
|
||||
|
||||
playerComponent.Play(Animation, AnimKey);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user