Replace IEntityManager resolves in systems for cached EntityManager
This commit is contained in:
@@ -41,7 +41,7 @@ namespace Content.Server.Climbing
|
||||
return;
|
||||
|
||||
// Check that the user climb.
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(args.User, out ClimbingComponent? climbingComponent) ||
|
||||
if (!EntityManager.TryGetComponent(args.User, out ClimbingComponent? climbingComponent) ||
|
||||
climbingComponent.IsClimbing)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user