From 5ede1f7b4e36ec7a86b7edb9453c90e2dc754d4d Mon Sep 17 00:00:00 2001 From: Tayrtahn Date: Wed, 23 Apr 2025 14:33:18 -0400 Subject: [PATCH] Cleanup warning in `EmptyAllContainersBehaviour` (#36860) Fix warning in EmptyAllContainersBehaviour --- .../Thresholds/Behaviors/EmptyAllContainersBehaviour.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.51.2