]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls...
authorWinkarst <74284083+Winkarst-cpu@users.noreply.github.com>
Mon, 24 Feb 2025 17:36:17 +0000 (20:36 +0300)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 17:36:17 +0000 (18:36 +0100)
* Cleanup

* Update

Content.Client/Chemistry/EntitySystems/ChemistryGuideDataSystem.cs

index 4c3a583b2aacffd416b92f292e979809e06440e5..374b00aa6e3cb852fb36dfbe474e3ab9187543bf 100644 (file)
@@ -94,7 +94,7 @@ public sealed class ChemistryGuideDataSystem : SharedChemistryGuideDataSystem
             if (entProto.Abstract || usedNames.Contains(entProto.Name))
                 continue;
 
-            if (!entProto.TryGetComponent<ExtractableComponent>(out var extractableComponent))
+            if (!entProto.TryGetComponent<ExtractableComponent>(out var extractableComponent, EntityManager.ComponentFactory))
                 continue;
 
             //these bloat the hell out of blood/fat
@@ -121,7 +121,7 @@ public sealed class ChemistryGuideDataSystem : SharedChemistryGuideDataSystem
 
 
             if (extractableComponent.GrindableSolution is { } grindableSolutionId &&
-                entProto.TryGetComponent<SolutionContainerManagerComponent>(out var manager) &&
+                entProto.TryGetComponent<SolutionContainerManagerComponent>(out var manager, EntityManager.ComponentFactory) &&
                 _solutionContainer.TryGetSolution(manager, grindableSolutionId, out var grindableSolution))
             {
                 var data = new ReagentEntitySourceData(