Gets rid of all ComponentManager usages. (#4707)
This commit is contained in:
committed by
GitHub
parent
7953e5b962
commit
0be5ff829b
@@ -38,9 +38,9 @@ namespace Content.Server.StationEvents.Events
|
||||
|
||||
public override void Startup()
|
||||
{
|
||||
var componentManager = IoCManager.Resolve<IComponentManager>();
|
||||
var entityManager = IoCManager.Resolve<IEntityManager>();
|
||||
|
||||
foreach (var component in componentManager.EntityQuery<ApcPowerReceiverComponent>(true))
|
||||
foreach (var component in entityManager.EntityQuery<ApcPowerReceiverComponent>(true))
|
||||
{
|
||||
component.PowerDisabled = true;
|
||||
_powered.Add(component.Owner);
|
||||
|
||||
Reference in New Issue
Block a user