Fix powered door prying popup (#20669)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user