using Content.Shared.Destructible;
using Content.Shared.DoAfter;
using Content.Shared.Hands.Components;
+using Content.Shared.IdentityManagement;
using Content.Shared.Kitchen;
using Content.Shared.Mobs.Components;
using Content.Shared.Mobs.Systems;
if (hasBody)
popupType = PopupType.LargeCaution;
- _popupSystem.PopupEntity(Loc.GetString("butcherable-knife-butchered-success", ("target", args.Args.Target.Value), ("knife", uid)),
+ _popupSystem.PopupEntity(Loc.GetString("butcherable-knife-butchered-success", ("target", args.Args.Target.Value), ("knife", Identity.Entity(uid, EntityManager))),
popupEnt, args.Args.User, popupType);
if (hasBody)
var disabled = false;
string? message = null;
- // if the user has hands
- // and the item they're holding doesn't have the SharpComponent
+ // if the held item doesn't have SharpComponent
+ // and the user doesn't have SharpComponent
// disable the verb
- if (!TryComp<SharpComponent>(args.Using, out var usingSharpComp) && args.Hands != null)
+ if (!TryComp<SharpComponent>(args.Using, out var usingSharpComp) && userSharpComp == null)
{
disabled = true;
message = Loc.GetString("butcherable-need-knife",