From: Menshin Date: Mon, 24 Apr 2023 20:41:46 +0000 (+0200) Subject: Fix handcuff raising assert on applying/removing (#15658) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=f85f45674f7e43e2a7b9559e6564b4082de641ed;p=space-station-14.git Fix handcuff raising assert on applying/removing (#15658) --- diff --git a/Content.Shared/Cuffs/SharedCuffableSystem.cs b/Content.Shared/Cuffs/SharedCuffableSystem.cs index 35898addb3..aad5f68952 100644 --- a/Content.Shared/Cuffs/SharedCuffableSystem.cs +++ b/Content.Shared/Cuffs/SharedCuffableSystem.cs @@ -486,7 +486,7 @@ namespace Content.Shared.Cuffs } } - _audio.PlayPvs(handcuffComponent.StartCuffSound, handcuff); + _audio.PlayPredicted(handcuffComponent.StartCuffSound, handcuff, user); } /// @@ -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);