Removed open and unlock for mobs with no hands (#9984)

* removed verbs open and unlock for mobs with no hands

* fix the file where check the hands

* fix now using HasComp looking for SharedHandsComponent

* remove blank line

* remove blank line

Co-authored-by: zero <ribeirolucasdev@gmail.com>
This commit is contained in:
Lucas
2022-07-25 22:31:25 -03:00
committed by GitHub
parent 5449e7875e
commit 78c784c5ae
2 changed files with 8 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ using Content.Shared.Emag.Systems;
using Content.Shared.Access.Components;
using Content.Shared.Access.Systems;
using Content.Shared.Examine;
using Content.Shared.Hands.Components;
using Content.Shared.Interaction;
using Content.Shared.Popups;
using Content.Shared.Storage;
@@ -152,6 +153,9 @@ namespace Content.Server.Lock
if (!Resolve(uid, ref storage, logMissing: false))
return true;
if (!HasComp<SharedHandsComponent>(user))
return false;
// Cannot lock if the entity is currently opened.
if (storage.Open)
return false;