From 16525082d23b97a16601c713ae9d7f02b1796f00 Mon Sep 17 00:00:00 2001 From: Rane <60792108+Elijahrane@users.noreply.github.com> Date: Wed, 4 Jan 2023 13:40:32 -0500 Subject: [PATCH] ejectOnBreak ejects locked slots too (#12933) --- Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs b/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs index d7116e7c9a..f20fa53c60 100644 --- a/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs +++ b/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs @@ -541,7 +541,10 @@ namespace Content.Shared.Containers.ItemSlots foreach (var slot in component.Slots.Values) { if (slot.EjectOnBreak && slot.HasItem) + { + SetLock(uid, slot, false, component); TryEject(uid, slot, null, out var _); + } } }