mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Content ecs containers (#22484)
(cherry picked from commit 7a77d6d5dd73a34be238fdebc284da5bc2917c67)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user