mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Cleanup warning in EmptyAllContainersBehaviour (#36860)
Fix warning in EmptyAllContainersBehaviour
This commit is contained in:
parent
6d88dd910d
commit
5ede1f7b4e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue