Make `AmbientSoundComponent.Enabled` readonly (#20438)

This commit is contained in:
Kara 2023-09-24 02:03:29 -07:00 committed by Debug
parent 2468833e49
commit f8f495d521
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ namespace Content.Shared.Audio;
[Access(typeof(SharedAmbientSoundSystem))]
public sealed partial class AmbientSoundComponent : Component, IComponentTreeEntry<AmbientSoundComponent>
{
[DataField("enabled")]
[DataField("enabled", readOnly: true)]
[ViewVariables(VVAccess.ReadWrite)] // only for map editing
public bool Enabled { get; set; } = true;