]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup warning in `EmptyAllContainersBehaviour` (#36860)
authorTayrtahn <tayrtahn@gmail.com>
Wed, 23 Apr 2025 18:33:18 +0000 (14:33 -0400)
committerGitHub <noreply@github.com>
Wed, 23 Apr 2025 18:33:18 +0000 (20:33 +0200)
Fix warning in EmptyAllContainersBehaviour

Content.Server/Destructible/Thresholds/Behaviors/EmptyAllContainersBehaviour.cs

index e696ad92580d28383af6782320197a7c6f47bcbe..60e7423247b4ac42199dc91602959e6115d7cdb4 100644 (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);
             }