From e5274542b9604815b76a7c5a312c45e48dd41e92 Mon Sep 17 00:00:00 2001 From: TemporalOroboros Date: Tue, 20 Dec 2022 15:54:56 -0800 Subject: [PATCH] This should fix the singularity generator. (#13121) --- .../Singularity/EntitySystems/SingularityGeneratorSystem.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Content.Server/Singularity/EntitySystems/SingularityGeneratorSystem.cs b/Content.Server/Singularity/EntitySystems/SingularityGeneratorSystem.cs index dee79427e1..cc26123eec 100644 --- a/Content.Server/Singularity/EntitySystems/SingularityGeneratorSystem.cs +++ b/Content.Server/Singularity/EntitySystems/SingularityGeneratorSystem.cs @@ -125,7 +125,9 @@ public sealed class SingularityGeneratorSystem : EntitySystem { if (EntityManager.TryGetComponent(args.OtherFixture.Body.Owner, out var singularityGeneratorComponent)) { - singularityGeneratorComponent.Power += component.State switch + SetPower( + singularityGeneratorComponent, + singularityGeneratorComponent.Power + component.State switch { ParticleAcceleratorPowerState.Standby => 0, ParticleAcceleratorPowerState.Level0 => 1, @@ -133,7 +135,7 @@ public sealed class SingularityGeneratorSystem : EntitySystem ParticleAcceleratorPowerState.Level2 => 4, ParticleAcceleratorPowerState.Level3 => 8, _ => 0 - }; + }); EntityManager.QueueDeleteEntity(uid); } }