Bandaid TEG shutdown (#21876)

Power moment
This commit is contained in:
metalgearsloth
2023-11-28 08:24:12 +11:00
committed by GitHub
parent ecf976b5a1
commit 78b76eefd2

View File

@@ -279,6 +279,10 @@ public sealed class TegSystem : EntitySystem
private void GeneratorPowerChange(EntityUid uid, TegGeneratorComponent component, ref PowerChangedEvent args) 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); var nodeGroup = GetNodeGroup(uid);
if (nodeGroup == null) if (nodeGroup == null)
return; return;