]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix ItemSlots prediction (#25552)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 25 Feb 2024 20:22:43 +0000 (07:22 +1100)
committerGitHub <noreply@github.com>
Sun, 25 Feb 2024 20:22:43 +0000 (12:22 -0800)
IDK what this arg is for but seems okay with guns. Without it it always thinks the insertion can work.

Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs

index d832cdfef8cff27dbe6ad111f1aca459deaf7593..90f4f2a9006b92be47ba5793c4cc254d31537f01 100644 (file)
@@ -274,7 +274,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);
         }
 
         /// <summary>