Equipment verbs & admin inventory access. (#14315)
This commit is contained in:
@@ -123,13 +123,13 @@ public sealed class SharpSystem : EntitySystem
|
||||
|
||||
private void OnGetInteractionVerbs(EntityUid uid, ButcherableComponent component, GetVerbsEvent<InteractionVerb> args)
|
||||
{
|
||||
if (component.Type != ButcheringType.Knife || args.Hands == null)
|
||||
if (component.Type != ButcheringType.Knife || args.Hands == null || !args.CanAccess || !args.CanInteract)
|
||||
return;
|
||||
|
||||
bool disabled = false;
|
||||
string? message = null;
|
||||
|
||||
if (args.Using is null || !HasComp<SharpComponent>(args.Using))
|
||||
if (!HasComp<SharpComponent>(args.Using))
|
||||
{
|
||||
disabled = true;
|
||||
message = Loc.GetString("butcherable-need-knife",
|
||||
|
||||
Reference in New Issue
Block a user