Replace IEntityManager resolves in systems for cached EntityManager
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Content.Server.Strip
|
||||
if (args.Hands == null || !args.CanAccess || !args.CanInteract || args.Target == args.User)
|
||||
return;
|
||||
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(args.User, out ActorComponent? actor))
|
||||
if (!EntityManager.TryGetComponent(args.User, out ActorComponent? actor))
|
||||
return;
|
||||
|
||||
Verb verb = new();
|
||||
|
||||
Reference in New Issue
Block a user