]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix incorrect message displaying when trying to remove stuck item from someones hand...
authorbeck-thompson <107373427+beck-thompson@users.noreply.github.com>
Tue, 14 May 2024 19:01:12 +0000 (12:01 -0700)
committerGitHub <noreply@github.com>
Tue, 14 May 2024 19:01:12 +0000 (15:01 -0400)
* Fix

* Fixed the other spot!

Content.Server/Strip/StrippableSystem.cs

index 1dba52a698425be275fdd196edbca92e78354247..6f0a1ecb328daa0b29bd698996a5bc2bb231d8e1 100644 (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;
             }