]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove butchering popup when clicking own sprite with a knife (#26051)
authorGyrandola <pasta.frollagg@gmail.com>
Wed, 13 Mar 2024 03:52:20 +0000 (04:52 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2024 03:52:20 +0000 (23:52 -0400)
added target!=user check

Content.Server/Kitchen/EntitySystems/SharpSystem.cs

index 814a64a4e3bf36e7f1df7dca8f5c66297b7b48b1..60178ed0ede2823424feb982771ceb04b93ac1e0 100644 (file)
@@ -56,7 +56,7 @@ public sealed class SharpSystem : EntitySystem
         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;