Fix the last of the compiler warnings.

This commit is contained in:
Pieter-Jan Briers
2020-10-22 10:26:24 +02:00
parent e98abd923c
commit f61aeb19e5
5 changed files with 7 additions and 15 deletions

View File

@@ -9,17 +9,15 @@ namespace Content.Server.GameObjects.EntitySystems
[UsedImplicitly]
internal sealed class BatteryStorageSystem : EntitySystem
{
[Dependency] private readonly IPauseManager _pauseManager = default!;
public override void Update(float frameTime)
{
foreach (var comp in ComponentManager.EntityQuery<BatteryStorageComponent>())
{
if (_pauseManager.IsEntityPaused(comp.Owner))
if (comp.Owner.Paused)
{
continue;
}
comp.Update(frameTime);
}
}