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,7 +196,8 @@ namespace Content.Server.Singularity.EntitySystems
if (TryComp<ApcPowerReceiverComponent>(uid, out var apcReceiver))
{
apcReceiver.Load = component.PowerUseActive;
PowerOn(uid, component);
if (apcReceiver.Powered)
PowerOn(uid, component);
}
// Do not directly PowerOn().
// OnReceivedPowerChanged will get fired due to DrawRate change which will turn it on.