Remove butchering popup when clicking own sprite with a knife (#26051)

added target!=user check
This commit is contained in:
Gyrandola
2024-03-13 04:52:20 +01:00
committed by GitHub
parent 9e155266be
commit 4e57f1977e

View 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;