From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 27 Nov 2023 21:24:12 +0000 (+1100) Subject: Bandaid TEG shutdown (#21876) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=78b76eefd2749691aaec6e055a4d85bf77334f23;p=space-station-14.git Bandaid TEG shutdown (#21876) Power moment --- diff --git a/Content.Server/Power/Generation/Teg/TegSystem.cs b/Content.Server/Power/Generation/Teg/TegSystem.cs index 9219f5f73c..2be41f7c92 100644 --- a/Content.Server/Power/Generation/Teg/TegSystem.cs +++ b/Content.Server/Power/Generation/Teg/TegSystem.cs @@ -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;