Remove butchering popup when clicking own sprite with a knife (#26051)
added target!=user check
This commit is contained in:
parent
9e155266be
commit
4e57f1977e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue