Gets rid of all ComponentManager usages. (#4707)
This commit is contained in:
committed by
GitHub
parent
7953e5b962
commit
0be5ff829b
@@ -22,8 +22,8 @@ namespace Content.Server.Power
|
||||
return;
|
||||
}
|
||||
|
||||
var comp = IoCManager.Resolve<IComponentManager>();
|
||||
foreach (var batteryComp in comp.EntityQuery<BatteryComponent>())
|
||||
var entMan = IoCManager.Resolve<IEntityManager>();
|
||||
foreach (var batteryComp in entMan.EntityQuery<BatteryComponent>())
|
||||
{
|
||||
batteryComp.CurrentCharge = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user