]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix Internals Sounds not working. (#42304)
authorPrincess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
Thu, 8 Jan 2026 10:49:50 +0000 (02:49 -0800)
committerGitHub <noreply@github.com>
Thu, 8 Jan 2026 10:49:50 +0000 (10:49 +0000)
ern

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Content.Shared/Atmos/EntitySystems/SharedGasTankSystem.cs

index 8c7ebe833228a2745917c86e03d4f1bbe8d900ab..4158c687bd0fe5f104d438eeadce8b067aa2f772 100644 (file)
@@ -141,7 +141,7 @@ public abstract class SharedGasTankSystem : EntitySystem
         if (!component.IsConnected)
             return false;
 
-        component.ConnectStream = _audio.Stop(component.ConnectStream);
+        component.DisconnectStream = _audio.Stop(component.DisconnectStream);
         component.ConnectStream = _audio.PlayPredicted(component.ConnectSound, owner, user)?.Entity;
         UpdateUserInterface(ent);
         return true;
@@ -210,7 +210,7 @@ public abstract class SharedGasTankSystem : EntitySystem
         if (internalsUid != null && internalsComp != null)
             _internals.DisconnectTank((internalsUid.Value, internalsComp), forced: forced);
 
-        component.DisconnectStream = _audio.Stop(component.DisconnectStream);
+        component.ConnectStream = _audio.Stop(component.ConnectStream);
         component.DisconnectStream = _audio.PlayPredicted(component.DisconnectSound, owner, user)?.Entity;
         UpdateUserInterface(ent);
         return true;