Skip to content

Commit

Permalink
Fix incorrect message displaying when trying to remove stuck item fro…
Browse files Browse the repository at this point in the history
…m someones hand. (space-wizards#28024)

* Fix

* Fixed the other spot!
  • Loading branch information
beck-thompson authored May 14, 2024
1 parent 0edc921 commit 550a3af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Strip/StrippableSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ private bool CanStripRemoveHand(

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;
}

Expand All @@ -511,7 +511,7 @@ private bool CanStripRemoveHand(

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;
}

Expand Down

0 comments on commit 550a3af

Please sign in to comment.