]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix hand refactor 2 (#38578)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Wed, 25 Jun 2025 16:26:20 +0000 (18:26 +0200)
committerGitHub <noreply@github.com>
Wed, 25 Jun 2025 16:26:20 +0000 (12:26 -0400)
* fix unwielding

* hand refactor bugfix 2

Content.Shared/Hands/EntitySystems/SharedHandsSystem.cs

index 4a24b9de02333b3dcb5e4631c7ff5f53e9e0f490..4f259a3bdeb25969421d6b7c9c98e333a56bf144 100644 (file)
@@ -296,7 +296,7 @@ public abstract partial class SharedHandsSystem
         if (handId == ent.Comp.ActiveHandId)
             return false;
 
-        if (TryGetHeldItem(ent, handId, out var oldHeld))
+        if (TryGetActiveItem(ent, out var oldHeld))
             RaiseLocalEvent(oldHeld.Value, new HandDeselectedEvent(ent));
 
         if (handId == null)