dont play sound if using tool was interrupted (#15302)
This commit is contained in:
@@ -22,7 +22,9 @@ public abstract partial class SharedToolSystem : EntitySystem
|
||||
|
||||
private void OnDoAfter(EntityUid uid, ToolComponent tool, ToolDoAfterEvent args)
|
||||
{
|
||||
PlayToolSound(uid, tool, args.User);
|
||||
if (!args.Cancelled)
|
||||
PlayToolSound(uid, tool, args.User);
|
||||
|
||||
var ev = args.WrappedEvent;
|
||||
ev.DoAfter = args.DoAfter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user