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