From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 25 Feb 2024 20:22:43 +0000 (+1100) Subject: Fix ItemSlots prediction (#25552) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=ad29dbe302ac921b9e3f6cbd3ded79788db27b46;p=space-station-14.git Fix ItemSlots prediction (#25552) IDK what this arg is for but seems okay with guns. Without it it always thinks the insertion can work. --- diff --git a/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs b/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs index d832cdfef8..90f4f2a900 100644 --- a/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs +++ b/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs @@ -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); } ///