Content ecs containers (#22484)

(cherry picked from commit 7a77d6d5dd)
This commit is contained in:
TemporalOroboros
2024-01-22 18:47:55 +01:00
committed by Debug
parent 11274cc472
commit aebae6fab7
72 changed files with 172 additions and 160 deletions
@@ -26,8 +26,8 @@ namespace Content.Server.Containers
{
foreach (var slot in component.Slots.Values)
{
if (slot.EjectOnDeconstruct && slot.Item != null)
slot.ContainerSlot?.Remove(slot.Item.Value);
if (slot.EjectOnDeconstruct && slot.Item != null && slot.ContainerSlot != null)
_container.Remove(slot.Item.Value, slot.ContainerSlot);
}
}