From c71e6e67aafce6f615dc84733475fa1688943ee9 Mon Sep 17 00:00:00 2001 From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Mon, 24 Feb 2025 20:36:17 +0300 Subject: [PATCH] Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls inside ``ChemistryGuideDataSystem`` (#35456) * Cleanup * Update --- .../Chemistry/EntitySystems/ChemistryGuideDataSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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( -- 2.51.2