Replace IEntityManager resolves in systems for cached EntityManager
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Content.Server.ParticleAccelerator.EntitySystems
|
||||
|
||||
private static void RotateEvent(ref RotateEvent ev)
|
||||
{
|
||||
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(ev.Sender, out ParticleAcceleratorPartComponent? part))
|
||||
if (EntityManager.TryGetComponent(ev.Sender, out ParticleAcceleratorPartComponent? part))
|
||||
{
|
||||
part.Rotated();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user