Change deconstruct verb accessibility (#5583)

This commit is contained in:
Leon Friedrich
2021-11-28 15:02:27 +13:00
committed by GitHub
parent 1c02b1d0d2
commit 94afcb2c4e

View File

@@ -178,7 +178,7 @@ namespace Content.Shared.Verbs
Target = target;
CanAccess = force || (Target == User) || user.IsInSameOrParentContainer(target) &&
EntitySystem.Get<SharedInteractionSystem>().InRangeUnobstructed(user, target);
EntitySystem.Get<SharedInteractionSystem>().InRangeUnobstructed(user, target, ignoreInsideBlocker: true);
// A large number of verbs need to check action blockers. Instead of repeatedly having each system individually
// call ActionBlocker checks, just cache it for the verb request.