Fix material reclaimer (recycler) making sound on round start (#16230)

Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
This commit is contained in:
eoineoineoin
2023-05-08 01:39:32 +01:00
committed by GitHub
parent dca5e76430
commit 3581db962c

View 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);
}