Hide deconstruct verb if user cannot interact. (#6122)
This commit is contained in:
@@ -33,7 +33,7 @@ namespace Content.Server.Construction
|
|||||||
|
|
||||||
private void AddDeconstructVerb(EntityUid uid, ConstructionComponent component, GetOtherVerbsEvent args)
|
private void AddDeconstructVerb(EntityUid uid, ConstructionComponent component, GetOtherVerbsEvent args)
|
||||||
{
|
{
|
||||||
if (!args.CanAccess)
|
if (!args.CanAccess || !args.CanInteract)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (component.TargetNode == component.DeconstructionNode ||
|
if (component.TargetNode == component.DeconstructionNode ||
|
||||||
|
|||||||
Reference in New Issue
Block a user