Gets rid of all ComponentManager usages. (#4707)
This commit is contained in:
committed by
GitHub
parent
7953e5b962
commit
0be5ff829b
@@ -387,7 +387,7 @@ namespace Content.Server.ParticleAccelerator.Components
|
||||
var coords = Owner.Transform.Coordinates;
|
||||
foreach (var maybeFuel in grid.GetCardinalNeighborCells(coords))
|
||||
{
|
||||
if (Owner.EntityManager.ComponentManager.TryGetComponent(maybeFuel, out _partFuelChamber))
|
||||
if (Owner.EntityManager.TryGetComponent(maybeFuel, out _partFuelChamber))
|
||||
{
|
||||
break;
|
||||
}
|
||||
@@ -461,7 +461,7 @@ namespace Content.Server.ParticleAccelerator.Components
|
||||
var coords = Owner.Transform.Coordinates;
|
||||
foreach (var ent in grid.GetOffset(coords, offset))
|
||||
{
|
||||
if (Owner.EntityManager.ComponentManager.TryGetComponent(ent, out part) && !part.Deleted)
|
||||
if (Owner.EntityManager.TryGetComponent(ent, out part) && !part.Deleted)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user