]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix itemslots swapping (#25634)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sat, 30 Mar 2024 03:31:47 +0000 (14:31 +1100)
committerGitHub <noreply@github.com>
Sat, 30 Mar 2024 03:31:47 +0000 (14:31 +1100)
Fix itemslots prediction

Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs

index 3463be2e71779098f2bf48142512fb4fe60b3926..83e09b1a6dd048b6f736f0056c5d40301ae360df 100644 (file)
@@ -279,7 +279,7 @@ namespace Content.Shared.Containers.ItemSlots
             if (ev.Cancelled)
                 return false;
 
-            return _containers.CanInsert(usedUid, slot.ContainerSlot, assumeEmpty: true);
+            return _containers.CanInsert(usedUid, slot.ContainerSlot, assumeEmpty: swap);
         }
 
         /// <summary>