From 4e57f1977e3d3e8a48e0d054bf0043af40abc048 Mon Sep 17 00:00:00 2001 From: Gyrandola Date: Wed, 13 Mar 2024 04:52:20 +0100 Subject: [PATCH] Remove butchering popup when clicking own sprite with a knife (#26051) added target!=user check --- Content.Server/Kitchen/EntitySystems/SharpSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Kitchen/EntitySystems/SharpSystem.cs b/Content.Server/Kitchen/EntitySystems/SharpSystem.cs index 814a64a4e3..60178ed0ed 100644 --- a/Content.Server/Kitchen/EntitySystems/SharpSystem.cs +++ b/Content.Server/Kitchen/EntitySystems/SharpSystem.cs @@ -56,7 +56,7 @@ public sealed class SharpSystem : EntitySystem if (!TryComp(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; -- 2.51.2