diff --git a/Content.Server/GameObjects/EntitySystems/BatteryDischargerSystem.cs b/Content.Server/GameObjects/EntitySystems/BatteryDischargerSystem.cs index a00c76e668..f6d9ab7cc5 100644 --- a/Content.Server/GameObjects/EntitySystems/BatteryDischargerSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/BatteryDischargerSystem.cs @@ -11,13 +11,8 @@ namespace Content.Server.GameObjects.EntitySystems { public override void Update(float frameTime) { - foreach (var comp in ComponentManager.EntityQuery()) + foreach (var comp in ComponentManager.EntityQuery(false)) { - if (comp.Owner.Paused) - { - continue; - } - comp.Update(frameTime); } } diff --git a/Content.Server/GameObjects/EntitySystems/BatteryStorageSystem.cs b/Content.Server/GameObjects/EntitySystems/BatteryStorageSystem.cs index 16796b4169..8ace299025 100644 --- a/Content.Server/GameObjects/EntitySystems/BatteryStorageSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/BatteryStorageSystem.cs @@ -11,13 +11,8 @@ namespace Content.Server.GameObjects.EntitySystems { public override void Update(float frameTime) { - foreach (var comp in ComponentManager.EntityQuery()) + foreach (var comp in ComponentManager.EntityQuery(false)) { - if (comp.Owner.Paused) - { - continue; - } - comp.Update(frameTime); } } diff --git a/Content.Server/GameObjects/EntitySystems/MoverSystem.cs b/Content.Server/GameObjects/EntitySystems/MoverSystem.cs index 5a78bbef97..6243f9794c 100644 --- a/Content.Server/GameObjects/EntitySystems/MoverSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/MoverSystem.cs @@ -57,10 +57,10 @@ namespace Content.Server.GameObjects.EntitySystems public override void Update(float frameTime) { - foreach (var (moverComponent, physics) in EntityManager.ComponentManager.EntityQuery(false)) + foreach (var (moverComponent, collidableComponent) in EntityManager.ComponentManager.EntityQuery(false)) { var entity = moverComponent.Owner; - UpdateKinematics(entity.Transform, moverComponent, physics); + UpdateKinematics(entity.Transform, moverComponent, collidableComponent); } } diff --git a/Content.Server/GameObjects/EntitySystems/PowerApcSystem.cs b/Content.Server/GameObjects/EntitySystems/PowerApcSystem.cs index 68fe9cdfca..e4cfab08f5 100644 --- a/Content.Server/GameObjects/EntitySystems/PowerApcSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/PowerApcSystem.cs @@ -13,14 +13,9 @@ namespace Content.Server.GameObjects.EntitySystems { public override void Update(float frameTime) { - var uniqueApcNets = new HashSet(); //could be improved by maintaining set instead of getting collection every frame - foreach (var apc in ComponentManager.EntityQuery()) + var uniqueApcNets = new HashSet(); //could be improved by maintaining set instead of getting collection every frame + foreach (var apc in ComponentManager.EntityQuery(false)) { - if (apc.Owner.Paused) - { - continue; - } - uniqueApcNets.Add(apc.Net); apc.Update(); }