Identity popup fixes (#9743)
This commit is contained in:
@@ -17,6 +17,7 @@ using Robust.Shared.Audio;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Timing;
|
||||
using Content.Shared.IdentityManagement;
|
||||
|
||||
namespace Content.Server.Buckle.Components
|
||||
{
|
||||
@@ -169,7 +170,7 @@ namespace Content.Server.Buckle.Components
|
||||
{
|
||||
var message = Loc.GetString(Owner == user
|
||||
? "buckle-component-already-buckled-message"
|
||||
: "buckle-component-other-already-buckled-message", ("owner", Owner));
|
||||
: "buckle-component-other-already-buckled-message", ("owner", Identity.Entity(Owner, _entMan)));
|
||||
popupSystem.PopupEntity(message, user, Filter.Entities(user));
|
||||
|
||||
return false;
|
||||
@@ -182,7 +183,7 @@ namespace Content.Server.Buckle.Components
|
||||
{
|
||||
var message = Loc.GetString(Owner == user
|
||||
? "buckle-component-cannot-buckle-message"
|
||||
: "buckle-component-other-cannot-buckle-message", ("owner", Owner));
|
||||
: "buckle-component-other-cannot-buckle-message", ("owner", Identity.Entity(Owner, _entMan)));
|
||||
popupSystem.PopupEntity(message, user, Filter.Entities(user));
|
||||
|
||||
return false;
|
||||
@@ -195,7 +196,7 @@ namespace Content.Server.Buckle.Components
|
||||
{
|
||||
var message = Loc.GetString(Owner == user
|
||||
? "buckle-component-cannot-fit-message"
|
||||
: "buckle-component-other-cannot-fit-message", ("owner", Owner));
|
||||
: "buckle-component-other-cannot-fit-message", ("owner", Identity.Entity(Owner, _entMan)));
|
||||
popupSystem.PopupEntity(message, user, Filter.Entities(user));
|
||||
|
||||
return false;
|
||||
@@ -218,7 +219,7 @@ namespace Content.Server.Buckle.Components
|
||||
{
|
||||
var message = Loc.GetString(Owner == user
|
||||
? "buckle-component-cannot-buckle-message"
|
||||
: "buckle-component-other-cannot-buckle-message", ("owner", Owner));
|
||||
: "buckle-component-other-cannot-buckle-message", ("owner", Identity.Entity(Owner, _entMan)));
|
||||
popupSystem.PopupEntity(message, user, Filter.Entities(user));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user