* TEG now checks for power supply before checking for IsFullyBuilt
* Update Content.Server/Power/Generation/Teg/TegSystem.cs
Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
---------
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
private void GeneratorUpdate(EntityUid uid, TegGeneratorComponent component, ref AtmosDeviceUpdateEvent args)
{
- var tegGroup = GetNodeGroup(uid);
- if (tegGroup is not { IsFullyBuilt: true })
- return;
-
var supplier = Comp<PowerSupplierComponent>(uid);
var powerReceiver = Comp<ApcPowerReceiverComponent>(uid);
if (!powerReceiver.Powered)
return;
}
+ var tegGroup = GetNodeGroup(uid);
+ if (tegGroup is not { IsFullyBuilt: true })
+ return;
+
var circA = tegGroup.CirculatorA!.Owner;
var circB = tegGroup.CirculatorB!.Owner;