From: Tayrtahn Date: Wed, 23 Apr 2025 18:33:18 +0000 (-0400) Subject: Cleanup warning in `EmptyAllContainersBehaviour` (#36860) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=5ede1f7b4e36ec7a86b7edb9453c90e2dc754d4d;p=space-station-14.git Cleanup warning in `EmptyAllContainersBehaviour` (#36860) Fix warning in EmptyAllContainersBehaviour --- diff --git a/Content.Server/Destructible/Thresholds/Behaviors/EmptyAllContainersBehaviour.cs b/Content.Server/Destructible/Thresholds/Behaviors/EmptyAllContainersBehaviour.cs index e696ad9258..60e7423247 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/EmptyAllContainersBehaviour.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/EmptyAllContainersBehaviour.cs @@ -13,7 +13,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors if (!system.EntityManager.TryGetComponent(owner, out var containerManager)) return; - foreach (var container in containerManager.GetAllContainers()) + foreach (var container in system.EntityManager.System().GetAllContainers(owner, containerManager)) { system.ContainerSystem.EmptyContainer(container, true, system.EntityManager.GetComponent(owner).Coordinates); }