]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Bandaid TEG shutdown (#21876)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Mon, 27 Nov 2023 21:24:12 +0000 (08:24 +1100)
committerGitHub <noreply@github.com>
Mon, 27 Nov 2023 21:24:12 +0000 (14:24 -0700)
Power moment

Content.Server/Power/Generation/Teg/TegSystem.cs

index 9219f5f73cfa29d6d6f3d6b1977de98e2de13b5c..2be41f7c923d633024f6fa8fb91399c98fe8bad5 100644 (file)
@@ -279,6 +279,10 @@ public sealed class TegSystem : EntitySystem
 
     private void GeneratorPowerChange(EntityUid uid, TegGeneratorComponent component, ref PowerChangedEvent args)
     {
+        // TODO: I wish power events didn't go out on shutdown.
+        if (TerminatingOrDeleted(uid))
+            return;
+
         var nodeGroup = GetNodeGroup(uid);
         if (nodeGroup == null)
             return;