Fix powered door prying popup (#20669)

This commit is contained in:
chromiumboy
2023-10-02 01:27:29 -05:00
committed by GitHub
parent 66c5549640
commit 149c494972
2 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ public sealed class AirlockSystem : SharedAirlockSystem
{ {
if (this.IsPowered(uid, EntityManager) && !args.PryPowered) 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; args.Cancelled = true;
} }
} }

View File

@@ -25,7 +25,7 @@ public abstract class SharedDoorBoltSystem : EntitySystem
{ {
if (component.BoltsDown && !args.Force) 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; args.Cancelled = true;
} }
} }