Skip to content

Commit 02f0190

Browse files
authored
Cleanup: Pass in IComponentFactory in EntityPrototype.TryGetComponent calls inside SharedMaterialStorageSystem (space-wizards#35463)
Cleanup
1 parent 45e7891 commit 02f0190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Content.Shared/Materials/SharedMaterialStorageSystem.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public int GetSheetVolume(MaterialPrototype material)
326326

327327
var proto = _prototype.Index<EntityPrototype>(material.StackEntity);
328328

329-
if (!proto.TryGetComponent<PhysicalCompositionComponent>(out var composition))
329+
if (!proto.TryGetComponent<PhysicalCompositionComponent>(out var composition, EntityManager.ComponentFactory))
330330
return DefaultSheetVolume;
331331

332332
return composition.MaterialComposition.FirstOrDefault(kvp => kvp.Key == material.ID).Value;

0 commit comments

Comments
 (0)