]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix devices in terminal mispredicting power state (#38647)
authorTayrtahn <tayrtahn@gmail.com>
Mon, 14 Jul 2025 07:49:27 +0000 (03:49 -0400)
committerGitHub <noreply@github.com>
Mon, 14 Jul 2025 07:49:27 +0000 (00:49 -0700)
* The simple solution

* The better solution

* Revert "The better solution"

This reverts commit 611e56e031636734abab1ad3e77bf88b69a4de13.

Content.Client/Power/EntitySystems/StaticPowerSystem.cs

index 2ca945cbbd8c40a5831b2dd2dd7fd45cc0d8e7c5..f803b92067c626376b12e5d6f4caf00fd2ba281a 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;
     }