Bandaid TEG shutdown (#21876)

Power moment
This commit is contained in:
metalgearsloth 2023-11-28 08:24:12 +11:00 committed by Debug
parent 8047d36c9f
commit bce8cec699
1 changed files with 4 additions and 0 deletions

View 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;