From: Kara Date: Sun, 24 Sep 2023 09:03:29 +0000 (-0700) Subject: Make `AmbientSoundComponent.Enabled` readonly (#20438) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=e26c0706f69dcad420e0029640ff0a49e48ce8b1;p=space-station-14.git Make `AmbientSoundComponent.Enabled` readonly (#20438) --- diff --git a/Content.Shared/Audio/AmbientSoundComponent.cs b/Content.Shared/Audio/AmbientSoundComponent.cs index 8075c0bd4b..bd59ab611f 100644 --- a/Content.Shared/Audio/AmbientSoundComponent.cs +++ b/Content.Shared/Audio/AmbientSoundComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Audio; [Access(typeof(SharedAmbientSoundSystem))] public sealed partial class AmbientSoundComponent : Component, IComponentTreeEntry { - [DataField("enabled")] + [DataField("enabled", readOnly: true)] [ViewVariables(VVAccess.ReadWrite)] // only for map editing public bool Enabled { get; set; } = true;