Gets rid of all ComponentManager usages. (#4707)
This commit is contained in:
committed by
GitHub
parent
7953e5b962
commit
0be5ff829b
@@ -13,7 +13,6 @@ namespace Content.Client.Singularity
|
||||
{
|
||||
public class SingularityOverlay : Overlay
|
||||
{
|
||||
[Dependency] private readonly IComponentManager _componentManager = default!;
|
||||
[Dependency] private readonly IEntityManager _entityManager = default!;
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
|
||||
@@ -73,7 +72,7 @@ namespace Content.Client.Singularity
|
||||
|
||||
var currentEyeLoc = currentEye.Position;
|
||||
|
||||
var distortions = _componentManager.EntityQuery<SingularityDistortionComponent>();
|
||||
var distortions = _entityManager.EntityQuery<SingularityDistortionComponent>();
|
||||
foreach (var distortion in distortions) //Add all singulos that are not added yet but qualify
|
||||
{
|
||||
var singuloEntity = distortion.Owner;
|
||||
|
||||
Reference in New Issue
Block a user