Construction warning cleanup (#12256)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Content.Shared.Construction;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Server.Containers;
|
||||
using Robust.Shared.Containers;
|
||||
|
||||
namespace Content.Server.Construction.Completions
|
||||
@@ -14,9 +15,10 @@ namespace Content.Server.Construction.Completions
|
||||
return;
|
||||
|
||||
var transform = entityManager.GetComponent<TransformComponent>(uid);
|
||||
var containerSys = entityManager.EntitySysManager.GetEntitySystem<ContainerSystem>();
|
||||
foreach (var container in containerManager.GetAllContainers())
|
||||
{
|
||||
container.EmptyContainer(true, transform.Coordinates);
|
||||
containerSys.EmptyContainer(container, true, transform.Coordinates);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user