]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
LatheSystem independently of energy (#30148)
authorEd <96445749+TheShuEd@users.noreply.github.com>
Thu, 18 Jul 2024 19:29:20 +0000 (22:29 +0300)
committerGitHub <noreply@github.com>
Thu, 18 Jul 2024 19:29:20 +0000 (22:29 +0300)
* Update LatheSystem.cs

* Emo

Content.Server/Power/EntitySystems/StaticPowerSystem.cs

index 9e11d9311af3d98a904008b1a36618061cc816b4..61a23e501df9e5274909444789ace7bb97a7a3f3 100644 (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;
     }