Replace IEntityManager resolves in systems for cached EntityManager
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
{
|
||||
SoundSystem.Play(Filter.Pvs(creamPie.Owner), creamPie.Sound.GetSound(), creamPie.Owner, AudioHelpers.WithVariation(0.125f));
|
||||
|
||||
if (IoCManager.Resolve<IEntityManager>().TryGetComponent<FoodComponent?>(creamPie.Owner, out var foodComp) && _solutionsSystem.TryGetSolution(creamPie.Owner, foodComp.SolutionName, out var solution))
|
||||
if (EntityManager.TryGetComponent<FoodComponent?>(creamPie.Owner, out var foodComp) && _solutionsSystem.TryGetSolution(creamPie.Owner, foodComp.SolutionName, out var solution))
|
||||
{
|
||||
_spillableSystem.SpillAt(creamPie.Owner, solution, "PuddleSmear", false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user