Hide deconstruct verb if user cannot interact. (#6122)

This commit is contained in:
Leon Friedrich
2022-01-11 16:42:39 +13:00
committed by GitHub
parent adcdcaa4e4
commit fd83fc8d8e

View File

@@ -33,7 +33,7 @@ namespace Content.Server.Construction
private void AddDeconstructVerb(EntityUid uid, ConstructionComponent component, GetOtherVerbsEvent args)
{
if (!args.CanAccess)
if (!args.CanAccess || !args.CanInteract)
return;
if (component.TargetNode == component.DeconstructionNode ||