mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
Don't show climb verb for objects that cannot be climbed (#38115)
fix climb verb
This commit is contained in:
parent
a60d5d4002
commit
7c382cc6ce
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue