Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls inside ``SharedMaterialStorageSystem`` (#35463)

Cleanup
This commit is contained in:
Winkarst 2025-02-24 20:58:25 +03:00 committed by deltanedas
parent 9d59c6ad72
commit 377fd14d81
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ public abstract class SharedMaterialStorageSystem : EntitySystem
var proto = _prototype.Index<EntityPrototype>(material.StackEntity);
if (!proto.TryGetComponent<PhysicalCompositionComponent>(out var composition))
if (!proto.TryGetComponent<PhysicalCompositionComponent>(out var composition, EntityManager.ComponentFactory))
return DefaultSheetVolume;
return composition.MaterialComposition.FirstOrDefault(kvp => kvp.Key == material.ID).Value;