Another batch of DoAfter fixes (#14351)
This commit is contained in:
@@ -77,9 +77,15 @@ public sealed class SharpSystem : EntitySystem
|
||||
|
||||
private void OnDoAfter(EntityUid uid, SharpComponent component, DoAfterEvent args)
|
||||
{
|
||||
if (args.Handled || args.Cancelled || !TryComp<ButcherableComponent>(args.Args.Target, out var butcher))
|
||||
if (args.Handled || !TryComp<ButcherableComponent>(args.Args.Target, out var butcher))
|
||||
return;
|
||||
|
||||
if (args.Cancelled)
|
||||
{
|
||||
component.Butchering.Remove(args.Args.Target.Value);
|
||||
return;
|
||||
}
|
||||
|
||||
component.Butchering.Remove(args.Args.Target.Value);
|
||||
|
||||
if (_containerSystem.IsEntityInContainer(args.Args.Target.Value))
|
||||
|
||||
Reference in New Issue
Block a user