Don't remove item slots when terminating. (#14042)
This commit is contained in:
@@ -111,7 +111,7 @@ namespace Content.Shared.Containers.ItemSlots
|
||||
/// </summary>
|
||||
public void RemoveItemSlot(EntityUid uid, ItemSlot slot, ItemSlotsComponent? itemSlots = null)
|
||||
{
|
||||
if (slot.ContainerSlot == null)
|
||||
if (Terminating(uid) || slot.ContainerSlot == null)
|
||||
return;
|
||||
|
||||
slot.ContainerSlot.Shutdown();
|
||||
|
||||
Reference in New Issue
Block a user