From e0dd65983eda9a32226e73e450f8b9a00d7c5b12 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 12 Feb 2023 14:14:02 +1300 Subject: [PATCH] Don't remove item slots when terminating. (#14042) --- Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs b/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs index f20fa53c60..059bf5cb4f 100644 --- a/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs +++ b/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs @@ -111,7 +111,7 @@ namespace Content.Shared.Containers.ItemSlots /// public void RemoveItemSlot(EntityUid uid, ItemSlot slot, ItemSlotsComponent? itemSlots = null) { - if (slot.ContainerSlot == null) + if (Terminating(uid) || slot.ContainerSlot == null) return; slot.ContainerSlot.Shutdown(); -- 2.52.0