Replace IEntityManager resolves in systems for cached EntityManager
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
|
||||
private void AddOpenUIVerb(EntityUid uid, GasTankComponent component, GetActivationVerbsEvent args)
|
||||
{
|
||||
if (!args.CanAccess || !IoCManager.Resolve<IEntityManager>().TryGetComponent<ActorComponent?>(args.User, out var actor))
|
||||
if (!args.CanAccess || !EntityManager.TryGetComponent<ActorComponent?>(args.User, out var actor))
|
||||
return;
|
||||
|
||||
Verb verb = new();
|
||||
|
||||
Reference in New Issue
Block a user