Fix devices in terminal mispredicting power state (#38647)
* The simple solution * The better solution * Revert "The better solution" This reverts commit 611e56e031636734abab1ad3e77bf88b69a4de13.
This commit is contained in:
parent
bd853b60de
commit
c60910dfa6
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ public static class StaticPowerSystem
|
|||
public static bool IsPowered(this EntitySystem system, EntityUid uid, IEntityManager entManager, ApcPowerReceiverComponent? receiver = null)
|
||||
{
|
||||
if (receiver == null && !entManager.TryGetComponent(uid, out receiver))
|
||||
return false;
|
||||
return true;
|
||||
|
||||
return receiver.Powered;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue