Replace IEntityManager resolves in systems for cached EntityManager
This commit is contained in:
@@ -33,7 +33,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
|
||||
foreach (var entity in _gridtileLookupSystem.GetEntitiesIntersecting(tile.GridIndex, tile.GridIndices))
|
||||
{
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(entity, out IPhysBody? physics)
|
||||
if (!EntityManager.TryGetComponent(entity, out IPhysBody? physics)
|
||||
|| !entity.IsMovedByPressure(out var pressure)
|
||||
|| entity.IsInContainer())
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user