Fix material reclaimer (recycler) making sound on round start (#16230)
Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
This commit is contained in:
@@ -68,7 +68,7 @@ public sealed class MaterialReclaimerSystem : SharedMaterialReclaimerSystem
|
|||||||
|
|
||||||
private void OnPowerChanged(EntityUid uid, MaterialReclaimerComponent component, ref PowerChangedEvent args)
|
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;
|
component.Powered = args.Powered;
|
||||||
Dirty(component);
|
Dirty(component);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user