From f99d0151e6fbb0962b50f8200ab0ee272e76874c Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 21 Aug 2022 06:16:11 +1200 Subject: [PATCH] Fix AI/NPC error (#10730) --- .../AI/WorldState/States/Clothing/NearbyClothingState.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/AI/WorldState/States/Clothing/NearbyClothingState.cs b/Content.Server/AI/WorldState/States/Clothing/NearbyClothingState.cs index b92f675cb7..36ccd688fd 100644 --- a/Content.Server/AI/WorldState/States/Clothing/NearbyClothingState.cs +++ b/Content.Server/AI/WorldState/States/Clothing/NearbyClothingState.cs @@ -21,7 +21,7 @@ namespace Content.Server.AI.WorldState.States.Clothing { return result; } - var containerSystem = IoCManager.Resolve(); + var containerSystem = entMan.EntitySysManager.GetEntitySystem(); foreach (var entity in Visibility.GetNearestEntities(entMan.GetComponent(Owner).Coordinates, typeof(ClothingComponent), controller.VisionRadius)) { if (containerSystem.TryGetContainingContainer(entity, out var container))