Inline EntityManager

This commit is contained in:
Vera Aguilera Puerto
2021-12-03 11:11:52 +01:00
parent bd18574412
commit 5e177ae734
108 changed files with 250 additions and 199 deletions

View File

@@ -390,7 +390,7 @@ namespace Content.Server.ParticleAccelerator.Components
var coords = Owner.Transform.Coordinates;
foreach (var maybeFuel in grid.GetCardinalNeighborCells(coords))
{
if (Owner.EntityManager.TryGetComponent(maybeFuel, out _partFuelChamber))
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(maybeFuel, out _partFuelChamber))
{
break;
}
@@ -464,7 +464,7 @@ namespace Content.Server.ParticleAccelerator.Components
var coords = Owner.Transform.Coordinates;
foreach (var ent in grid.GetOffset(coords, offset))
{
if (Owner.EntityManager.TryGetComponent(ent, out part) && !part.Deleted)
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(ent, out part) && !part.Deleted)
{
return true;
}