Skip to content

Commit

Permalink
Remove butchering popup when clicking own sprite with a knife (#26051)
Browse files Browse the repository at this point in the history
added target!=user check
  • Loading branch information
Gyrandola authored and DangerRevolution committed Mar 20, 2024
1 parent 09d5eb9 commit 54eb16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Kitchen/EntitySystems/SharpSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private void TryStartButcherDoafter(EntityUid knife, EntityUid target, EntityUid
if (!TryComp<SharpComponent>(knife, out var sharp))
return;

if (butcher.Type != ButcheringType.Knife)
if (butcher.Type != ButcheringType.Knife && target != user)
{
_popupSystem.PopupEntity(Loc.GetString("butcherable-different-tool", ("target", target)), knife, user);
return;
Expand Down

0 comments on commit 54eb16c

Please sign in to comment.