]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix handcuff raising assert on applying/removing (#15658)
authorMenshin <Menshin@users.noreply.github.com>
Mon, 24 Apr 2023 20:41:46 +0000 (22:41 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Apr 2023 20:41:46 +0000 (16:41 -0400)
Content.Shared/Cuffs/SharedCuffableSystem.cs

index 35898addb347c123a70876ceea4fba93e7843f4a..aad5f6895260471e76edb93d35d3e1c69fba36f3 100644 (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);