Makes tools and welders ECS, add ToolQualityPrototype. (#4741)
This commit is contained in:
committed by
GitHub
parent
f2760d0002
commit
365c7da4dc
@@ -208,7 +208,7 @@ namespace Content.Shared.Chemistry.EntitySystems
|
||||
}
|
||||
|
||||
public bool TryGetSolution(IEntity? target, string name,
|
||||
[NotNullWhen(true)] out Solution? solution)
|
||||
[NotNullWhen(true)] out Solution? solution, SolutionContainerManagerComponent? solutionsMgr = null)
|
||||
{
|
||||
if (target == null || target.Deleted)
|
||||
{
|
||||
@@ -216,13 +216,12 @@ namespace Content.Shared.Chemistry.EntitySystems
|
||||
return false;
|
||||
}
|
||||
|
||||
return TryGetSolution(target.Uid, name, out solution);
|
||||
return TryGetSolution(target.Uid, name, out solution, solutionsMgr);
|
||||
}
|
||||
|
||||
public bool TryGetSolution(EntityUid uid, string name,
|
||||
[NotNullWhen(true)] out Solution? solution)
|
||||
public bool TryGetSolution(EntityUid uid, string name, [NotNullWhen(true)] out Solution? solution, SolutionContainerManagerComponent? solutionsMgr = null)
|
||||
{
|
||||
if (!EntityManager.TryGetComponent(uid, out SolutionContainerManagerComponent? solutionsMgr))
|
||||
if (!Resolve(uid, ref solutionsMgr))
|
||||
{
|
||||
solution = null;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user