diff --git a/Content.Server/Materials/MaterialStorageSystem.cs b/Content.Server/Materials/MaterialStorageSystem.cs index 9f43a22049..8c50d5fe9a 100644 --- a/Content.Server/Materials/MaterialStorageSystem.cs +++ b/Content.Server/Materials/MaterialStorageSystem.cs @@ -69,7 +69,7 @@ public sealed class MaterialStorageSystem : SharedMaterialStorageSystem if (material.StackEntity != null) { - if (!_prototypeManager.Index(material.StackEntity).TryGetComponent(out var composition)) + if (!_prototypeManager.Index(material.StackEntity).TryGetComponent(out var composition, EntityManager.ComponentFactory)) return; var volumePerSheet = composition.MaterialComposition.FirstOrDefault(kvp => kvp.Key == msg.Material).Value; @@ -169,7 +169,7 @@ public sealed class MaterialStorageSystem : SharedMaterialStorageSystem return new List(); var entProto = _prototypeManager.Index(materialProto.StackEntity); - if (!entProto.TryGetComponent(out var composition)) + if (!entProto.TryGetComponent(out var composition, EntityManager.ComponentFactory)) return new List(); var materialPerStack = composition.MaterialComposition[materialProto.ID];