]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix storage voice control bug after handssystem refactor (#38810)
authorArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
Sun, 6 Jul 2025 23:42:13 +0000 (16:42 -0700)
committerGitHub <noreply@github.com>
Sun, 6 Jul 2025 23:42:13 +0000 (01:42 +0200)
Content.Server/VoiceTrigger/StorageVoiceControlSystem.cs

index 1755c6df0874f5a5b04ca2f5321ed08e832df515..81bbd48a0df057b8e544974254a0c3a67c898634 100644 (file)
@@ -40,7 +40,7 @@ public sealed class StorageVoiceControlSystem : EntitySystem
             return;
 
         // If the player has something in their hands, try to insert it into the storage
-        if (_hands.TryGetActiveItem(ent.Owner, out var activeItem))
+        if (_hands.TryGetActiveItem(args.Source, out var activeItem))
         {
             // Disallow insertion and provide a reason why if the person decides to insert the item into itself
             if (ent.Owner.Equals(activeItem.Value))