Remove butchering popup when clicking own sprite with a knife (#26051)
added target!=user check
This commit is contained in:
@@ -56,7 +56,7 @@ public sealed class SharpSystem : EntitySystem
|
|||||||
if (!TryComp<SharpComponent>(knife, out var sharp))
|
if (!TryComp<SharpComponent>(knife, out var sharp))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (butcher.Type != ButcheringType.Knife)
|
if (butcher.Type != ButcheringType.Knife && target != user)
|
||||||
{
|
{
|
||||||
_popupSystem.PopupEntity(Loc.GetString("butcherable-different-tool", ("target", target)), knife, user);
|
_popupSystem.PopupEntity(Loc.GetString("butcherable-different-tool", ("target", target)), knife, user);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user