BUGFIX: Fix APEs being able to be turned on without power (#32493)

Add a check to see the APC is powered before turning the emitter on.
This commit is contained in:
Andrew Montagne
2024-11-11 22:58:31 +00:00
committed by GitHub
parent bbdbad5691
commit 1136200dc8

View File

@@ -196,6 +196,7 @@ namespace Content.Server.Singularity.EntitySystems
if (TryComp<ApcPowerReceiverComponent>(uid, out var apcReceiver))
{
apcReceiver.Load = component.PowerUseActive;
if (apcReceiver.Powered)
PowerOn(uid, component);
}
// Do not directly PowerOn().