LatheSystem independently of energy (#30148)
* Update LatheSystem.cs * Emo
This commit is contained in:
parent
a94f1f0fe0
commit
437fc936a2
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