]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Hand refactor bugfix (#38576)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Wed, 25 Jun 2025 15:41:19 +0000 (17:41 +0200)
committerGitHub <noreply@github.com>
Wed, 25 Jun 2025 15:41:19 +0000 (17:41 +0200)
Content.Shared/Wieldable/SharedWieldableSystem.cs

index c3375c3fe1bcc23f103b33a8ed78735bbccc86f1..0a49622f8bd09d70e86505c1726d3de3be4c4fbc 100644 (file)
@@ -112,7 +112,7 @@ public abstract class SharedWieldableSystem : EntitySystem
 
     private void OnDeselectWieldable(EntityUid uid, WieldableComponent component, HandDeselectedEvent args)
     {
-        if (_hands.GetHandCount(uid) > 2)
+        if (_hands.GetHandCount(args.User) > 2)
             return;
 
         TryUnwield(uid, component, args.User);