tweak(BurialSystem): Don't cancel doafter on keyup (#30507)
This commit is contained in:
@@ -160,7 +160,7 @@ public sealed class BurialSystem : EntitySystem
|
||||
{
|
||||
// We track a separate doAfter here, as we want someone with a shovel to
|
||||
// be able to come along and help someone trying to claw their way out
|
||||
if (component.HandDiggingDoAfter != null)
|
||||
if (_doAfterSystem.IsRunning(component.HandDiggingDoAfter))
|
||||
return;
|
||||
|
||||
if (!_actionBlocker.CanMove(args.Entity))
|
||||
@@ -178,7 +178,7 @@ public sealed class BurialSystem : EntitySystem
|
||||
if (component.Stream == null)
|
||||
component.Stream = _audioSystem.PlayPredicted(component.DigSound, uid, args.Entity)?.Entity;
|
||||
|
||||
if (!_doAfterSystem.TryStartDoAfter(doAfterEventArgs))
|
||||
if (!_doAfterSystem.TryStartDoAfter(doAfterEventArgs, out component.HandDiggingDoAfter))
|
||||
{
|
||||
_audioSystem.Stop(component.Stream);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user