Replace IEntityManager resolves in systems for cached EntityManager
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Content.Server.Chemistry.EntitySystems
|
||||
if (!args.CanAccess || !args.CanInteract || !component.CanChangeTransferAmount)
|
||||
return;
|
||||
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent<ActorComponent?>(args.User, out var actor))
|
||||
if (!EntityManager.TryGetComponent<ActorComponent?>(args.User, out var actor))
|
||||
return;
|
||||
|
||||
// Custom transfer verb
|
||||
|
||||
Reference in New Issue
Block a user