]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make `AmbientSoundComponent.Enabled` readonly (#20438)
authorKara <lunarautomaton6@gmail.com>
Sun, 24 Sep 2023 09:03:29 +0000 (02:03 -0700)
committerGitHub <noreply@github.com>
Sun, 24 Sep 2023 09:03:29 +0000 (02:03 -0700)
Content.Shared/Audio/AmbientSoundComponent.cs

index 8075c0bd4b94ff2479d1c86ff114297ae536e186..bd59ab611fb0373a786377ed0e0e18a5477d21ea 100644 (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;