Cleanup: Pass in `IComponentFactory in EntityPrototype.TryGetComponent calls inside ChemistryGuideDataSystem` (#35456)
* Cleanup * Update
This commit is contained in:
@@ -94,7 +94,7 @@ public sealed class ChemistryGuideDataSystem : SharedChemistryGuideDataSystem
|
|||||||
if (entProto.Abstract || usedNames.Contains(entProto.Name))
|
if (entProto.Abstract || usedNames.Contains(entProto.Name))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!entProto.TryGetComponent<ExtractableComponent>(out var extractableComponent))
|
if (!entProto.TryGetComponent<ExtractableComponent>(out var extractableComponent, EntityManager.ComponentFactory))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
//these bloat the hell out of blood/fat
|
//these bloat the hell out of blood/fat
|
||||||
@@ -121,7 +121,7 @@ public sealed class ChemistryGuideDataSystem : SharedChemistryGuideDataSystem
|
|||||||
|
|
||||||
|
|
||||||
if (extractableComponent.GrindableSolution is { } grindableSolutionId &&
|
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))
|
_solutionContainer.TryGetSolution(manager, grindableSolutionId, out var grindableSolution))
|
||||||
{
|
{
|
||||||
var data = new ReagentEntitySourceData(
|
var data = new ReagentEntitySourceData(
|
||||||
|
|||||||
Reference in New Issue
Block a user