Gets rid of all ComponentManager usages. (#4707)
This commit is contained in:
committed by
GitHub
parent
7953e5b962
commit
0be5ff829b
@@ -61,7 +61,7 @@ namespace Content.Server.Singularity.EntitySystems
|
||||
{
|
||||
_accumulator -= _updateInterval;
|
||||
|
||||
foreach (var singularity in ComponentManager.EntityQuery<ServerSingularityComponent>())
|
||||
foreach (var singularity in EntityManager.EntityQuery<ServerSingularityComponent>())
|
||||
{
|
||||
singularity.Energy -= singularity.EnergyDrain;
|
||||
}
|
||||
@@ -71,7 +71,7 @@ namespace Content.Server.Singularity.EntitySystems
|
||||
{
|
||||
_gravityAccumulator -= GravityCooldown;
|
||||
|
||||
foreach (var singularity in ComponentManager.EntityQuery<ServerSingularityComponent>())
|
||||
foreach (var singularity in EntityManager.EntityQuery<ServerSingularityComponent>())
|
||||
{
|
||||
Update(singularity, GravityCooldown);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user