Don't show climb verb for objects that cannot be climbed (#38115)
fix climb verb
This commit is contained in:
parent
a60d5d4002
commit
7c382cc6ce
|
|
@ -170,7 +170,7 @@ public sealed partial class ClimbSystem : VirtualController
|
|||
|
||||
private void AddClimbableVerb(EntityUid uid, ClimbableComponent component, GetVerbsEvent<AlternativeVerb> args)
|
||||
{
|
||||
if (!args.CanAccess || !args.CanInteract || !_actionBlockerSystem.CanMove(args.User))
|
||||
if (!args.CanAccess || !args.CanInteract || !_actionBlockerSystem.CanMove(args.User) || !component.Vaultable)
|
||||
return;
|
||||
|
||||
if (!TryComp(args.User, out ClimbingComponent? climbingComponent) || climbingComponent.IsClimbing || !climbingComponent.CanClimb)
|
||||
|
|
|
|||
Loading…
Reference in New Issue