]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix powered door prying popup (#20669)
authorchromiumboy <50505512+chromiumboy@users.noreply.github.com>
Mon, 2 Oct 2023 06:27:29 +0000 (01:27 -0500)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 06:27:29 +0000 (22:27 -0800)
Content.Server/Doors/Systems/AirlockSystem.cs
Content.Shared/Doors/Systems/SharedDoorBoltSystem.cs

index 0ea2755ab66a4b694e99448b8e6449daa3f32415..67f732f28e413dd2fb3780d7466debed527579df 100644 (file)
@@ -179,7 +179,7 @@ public sealed class AirlockSystem : SharedAirlockSystem
     {
         if (this.IsPowered(uid, EntityManager) && !args.PryPowered)
         {
-            Popup.PopupClient(Loc.GetString("airlock-component-cannot-pry-is-powered-message"), uid, args.User);
+            Popup.PopupEntity(Loc.GetString("airlock-component-cannot-pry-is-powered-message"), uid, args.User);
             args.Cancelled = true;
         }
     }
index 1deb6e3f7c00837b51e4fdb836e2c47e3b5802ed..a950fe6930aff39c954de43d949310985a77bd84 100644 (file)
@@ -25,7 +25,7 @@ public abstract class SharedDoorBoltSystem : EntitySystem
     {
         if (component.BoltsDown && !args.Force)
         {
-            Popup.PopupClient(Loc.GetString("airlock-component-cannot-pry-is-bolted-message"), uid, args.User);
+            Popup.PopupEntity(Loc.GetString("airlock-component-cannot-pry-is-bolted-message"), uid, args.User);
             args.Cancelled = true;
         }
     }