Removal interaction without hands (#8843)

This commit is contained in:
KIBORG04
2022-06-15 08:39:43 +07:00
committed by GitHub
parent 038d534d60
commit a75a921955
9 changed files with 9 additions and 8 deletions

View File

@@ -41,7 +41,7 @@ public sealed class StickySystem : EntitySystem
private void AddUnstickVerb(EntityUid uid, StickyComponent component, GetVerbsEvent<Verb> args)
{
if (component.StuckTo == null || !component.CanUnstick || !args.CanInteract)
if (component.StuckTo == null || !component.CanUnstick || !args.CanInteract || args.Hands == null)
return;
// we can't use args.CanAccess, because it stuck in another container