]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix material reclaimer (recycler) making sound on round start (#16230)
authoreoineoineoin <github@eoinrul.es>
Mon, 8 May 2023 00:39:32 +0000 (01:39 +0100)
committerGitHub <noreply@github.com>
Mon, 8 May 2023 00:39:32 +0000 (10:39 +1000)
Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
Content.Server/Materials/MaterialReclaimerSystem.cs

index 367daf3f0aa2d92c82133f01450723a727ebda26..ff25b5354e87b93af56987e39339d3b023180a91 100644 (file)
@@ -68,7 +68,7 @@ public sealed class MaterialReclaimerSystem : SharedMaterialReclaimerSystem
 
     private void OnPowerChanged(EntityUid uid, MaterialReclaimerComponent component, ref PowerChangedEvent args)
     {
-        AmbientSound.SetAmbience(uid, args.Powered);
+        AmbientSound.SetAmbience(uid, component.Enabled && args.Powered);
         component.Powered = args.Powered;
         Dirty(component);
     }