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