Fix handcuff raising assert on applying/removing (#15658)

This commit is contained in:
Menshin
2023-04-24 22:41:46 +02:00
committed by GitHub
parent 97f9d15c88
commit f85f45674f

View File

@@ -486,7 +486,7 @@ namespace Content.Shared.Cuffs
}
}
_audio.PlayPvs(handcuffComponent.StartCuffSound, handcuff);
_audio.PlayPredicted(handcuffComponent.StartCuffSound, handcuff, user);
}
/// <summary>
@@ -567,7 +567,7 @@ namespace Content.Shared.Cuffs
if (attempt.Cancelled)
return;
_audio.PlayPvs(cuff.EndUncuffSound, target);
_audio.PlayPredicted(cuff.EndUncuffSound, target, user);
cuffable.Container.Remove(cuffsToRemove);