From: Gyrandola Date: Wed, 13 Mar 2024 03:52:20 +0000 (+0100) Subject: Remove butchering popup when clicking own sprite with a knife (#26051) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=4e57f1977e3d3e8a48e0d054bf0043af40abc048;p=space-station-14.git Remove butchering popup when clicking own sprite with a knife (#26051) added target!=user check --- 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;