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))