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:
parent
bbdbad5691
commit
1136200dc8
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue