From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Mon, 24 Feb 2025 17:36:17 +0000 (+0300) Subject: Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls... X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=c71e6e67aafce6f615dc84733475fa1688943ee9;p=space-station-14.git Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls inside ``ChemistryGuideDataSystem`` (#35456) * Cleanup * Update --- diff --git a/Content.Client/Chemistry/EntitySystems/ChemistryGuideDataSystem.cs b/Content.Client/Chemistry/EntitySystems/ChemistryGuideDataSystem.cs index 4c3a583b2a..374b00aa6e 100644 --- a/Content.Client/Chemistry/EntitySystems/ChemistryGuideDataSystem.cs +++ b/Content.Client/Chemistry/EntitySystems/ChemistryGuideDataSystem.cs @@ -94,7 +94,7 @@ public sealed class ChemistryGuideDataSystem : SharedChemistryGuideDataSystem if (entProto.Abstract || usedNames.Contains(entProto.Name)) continue; - if (!entProto.TryGetComponent(out var extractableComponent)) + if (!entProto.TryGetComponent(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(out var manager) && + entProto.TryGetComponent(out var manager, EntityManager.ComponentFactory) && _solutionContainer.TryGetSolution(manager, grindableSolutionId, out var grindableSolution)) { var data = new ReagentEntitySourceData(