Clean up all missing EntitySystem proxy method uses (#38353)
This commit is contained in:
@@ -282,8 +282,8 @@ public abstract partial class SharedSolutionContainerSystem : EntitySystem
|
||||
public FixedPoint2 GetTotalPrototypeQuantity(EntityUid owner, string reagentId)
|
||||
{
|
||||
var reagentQuantity = FixedPoint2.New(0);
|
||||
if (EntityManager.EntityExists(owner)
|
||||
&& EntityManager.TryGetComponent(owner, out SolutionContainerManagerComponent? managerComponent))
|
||||
if (Exists(owner)
|
||||
&& TryComp(owner, out SolutionContainerManagerComponent? managerComponent))
|
||||
{
|
||||
foreach (var (_, soln) in EnumerateSolutions((owner, managerComponent)))
|
||||
{
|
||||
@@ -335,7 +335,7 @@ public abstract partial class SharedSolutionContainerSystem : EntitySystem
|
||||
var (uid, comp, appearanceComponent) = soln;
|
||||
var solution = comp.Solution;
|
||||
|
||||
if (!EntityManager.EntityExists(uid) || !Resolve(uid, ref appearanceComponent, false))
|
||||
if (!Exists(uid) || !Resolve(uid, ref appearanceComponent, false))
|
||||
return;
|
||||
|
||||
AppearanceSystem.SetData(uid, SolutionContainerVisuals.FillFraction, solution.FillFraction, appearanceComponent);
|
||||
|
||||
Reference in New Issue
Block a user