Inline UID
This commit is contained in:
@@ -37,11 +37,11 @@ namespace Content.Server.Climbing
|
||||
|
||||
private void AddClimbVerb(EntityUid uid, ClimbableComponent component, GetAlternativeVerbsEvent args)
|
||||
{
|
||||
if (!args.CanAccess || !args.CanInteract || !_actionBlockerSystem.CanMove(args.User.Uid))
|
||||
if (!args.CanAccess || !args.CanInteract || !_actionBlockerSystem.CanMove(args.User))
|
||||
return;
|
||||
|
||||
// Check that the user climb.
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(args.User.Uid, out ClimbingComponent? climbingComponent) ||
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(args.User, out ClimbingComponent? climbingComponent) ||
|
||||
climbingComponent.IsClimbing)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user