From f8f495d521850f8b346187ef665c4cf23c4dd435 Mon Sep 17 00:00:00 2001 From: Kara Date: Sun, 24 Sep 2023 02:03:29 -0700 Subject: [PATCH] Make `AmbientSoundComponent.Enabled` readonly (#20438) --- Content.Shared/Audio/AmbientSoundComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;