Make item slot containers nullable (#6198)
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Content.Server.Containers
|
||||
foreach (var slot in component.Slots.Values)
|
||||
{
|
||||
if (slot.EjectOnDeconstruct && slot.Item != null)
|
||||
slot.ContainerSlot.Remove(slot.Item.Value);
|
||||
slot.ContainerSlot?.Remove(slot.Item.Value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user