Display popup when butchering with the wrong tool (#18023)
This commit is contained in:
@@ -54,7 +54,10 @@ public sealed class SharpSystem : EntitySystem
|
||||
return;
|
||||
|
||||
if (butcher.Type != ButcheringType.Knife)
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("butcherable-different-tool", ("target", target)), knife, user);
|
||||
return;
|
||||
}
|
||||
|
||||
if (TryComp<MobStateComponent>(target, out var mobState) && !_mobStateSystem.IsDead(target, mobState))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user