Cleanup warning in EmptyAllContainersBehaviour (#36860)

Fix warning in EmptyAllContainersBehaviour
This commit is contained in:
Tayrtahn 2025-04-23 14:33:18 -04:00 • committed by GitHub
parent 6d88dd910d
commit 5ede1f7b4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors
if (!system.EntityManager.TryGetComponent<ContainerManagerComponent>(owner, out var containerManager))
return;
foreach (var container in containerManager.GetAllContainers())
foreach (var container in system.EntityManager.System<SharedContainerSystem>().GetAllContainers(owner, containerManager))
{
system.ContainerSystem.EmptyContainer(container, true, system.EntityManager.GetComponent<TransformComponent>(owner).Coordinates);
}