]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix rat king rummage audio (#21130)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Fri, 20 Oct 2023 22:58:00 +0000 (09:58 +1100)
committerGitHub <noreply@github.com>
Fri, 20 Oct 2023 22:58:00 +0000 (09:58 +1100)
Content.Shared/RatKing/SharedRatKingSystem.cs

index 761619dc4adea24eeec90aa9e66c61df29cf156c..93293d09be2e37d6efaa4c6ffdb215f37278669e 100644 (file)
@@ -130,7 +130,7 @@ public abstract class SharedRatKingSystem : EntitySystem
 
         component.Looted = true;
         Dirty(uid, component);
-        _audio.PlayPvs(component.Sound, uid);
+        _audio.PlayPredicted(component.Sound, uid, args.User);
 
         var spawn = PrototypeManager.Index<WeightedRandomEntityPrototype>(component.RummageLoot).Pick(Random);
         if (_net.IsServer)