LatheSystem independently of energy (#30148)

* Update LatheSystem.cs

* Emo
This commit is contained in:
Ed 2024-07-18 22:29:20 +03:00 committed by GitHub
parent a94f1f0fe0
commit 437fc936a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}