From: eoineoineoin Date: Mon, 8 May 2023 00:39:32 +0000 (+0100) Subject: Fix material reclaimer (recycler) making sound on round start (#16230) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=3581db962cd45655f5a70d1471a68cf0be7eada9;p=space-station-14.git Fix material reclaimer (recycler) making sound on round start (#16230) Co-authored-by: Eoin Mcloughlin --- diff --git a/Content.Server/Materials/MaterialReclaimerSystem.cs b/Content.Server/Materials/MaterialReclaimerSystem.cs index 367daf3f0a..ff25b5354e 100644 --- a/Content.Server/Materials/MaterialReclaimerSystem.cs +++ b/Content.Server/Materials/MaterialReclaimerSystem.cs @@ -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); }