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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user