Fix incorrect message displaying when trying to remove stuck item from someones hand. (#28024)

* Fix

* Fixed the other spot!
This commit is contained in:
beck-thompson
2024-05-14 12:01:12 -07:00
committed by GitHub
parent 0edc9218d6
commit 550a3afc52

View File

@@ -496,7 +496,7 @@ namespace Content.Server.Strip
if (!_handsSystem.TryGetHand(target, handName, out var handSlot, target.Comp))
{
_popupSystem.PopupCursor(Loc.GetString("strippable-component-item-slot-free-message", ("owner", target)), user);
_popupSystem.PopupCursor(Loc.GetString("strippable-component-item-slot-free-message", ("owner", Identity.Name(target, EntityManager, user))), user);
return false;
}
@@ -511,7 +511,7 @@ namespace Content.Server.Strip
if (!_handsSystem.CanDropHeld(target, handSlot, false))
{
_popupSystem.PopupCursor(Loc.GetString("strippable-component-cannot-drop-message", ("owner", target)), user);
_popupSystem.PopupCursor(Loc.GetString("strippable-component-cannot-drop-message", ("owner", Identity.Name(target, EntityManager, user))), user);
return false;
}