diff --git a/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs b/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs index e8c560d5e8..1073a58812 100644 --- a/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs +++ b/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs @@ -41,7 +41,7 @@ public sealed class ContainmentFieldGeneratorSystem : EntitySystem foreach (var generator in EntityQuery()) { if (generator.PowerBuffer <= 0) //don't drain power if there's no power, or if it's somehow less than 0. - return; + continue; generator.Accumulator += frameTime; diff --git a/Content.Server/Singularity/EntitySystems/SingularitySystem.cs b/Content.Server/Singularity/EntitySystems/SingularitySystem.cs index d5e1c3426e..919a86a3d3 100644 --- a/Content.Server/Singularity/EntitySystems/SingularitySystem.cs +++ b/Content.Server/Singularity/EntitySystems/SingularitySystem.cs @@ -133,7 +133,7 @@ namespace Content.Server.Singularity.EntitySystems !EntityManager.HasComponent(entity) && // these SHOULD be in null-space... but just in case. Also, maybe someone moves a singularity there.. (component.Level > 4 || !EntityManager.HasComponent(entity) && - !EntityManager.HasComponent(entity)); + !(EntityManager.TryGetComponent(entity, out var fieldGen) && fieldGen.IsConnected)); } private void HandleDestroy(ServerSingularityComponent component, EntityUid entity)