]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix ghost recoloring (#20001)
authorLankLTE <135308300+LankLTE@users.noreply.github.com>
Mon, 11 Sep 2023 04:36:26 +0000 (21:36 -0700)
committerGitHub <noreply@github.com>
Mon, 11 Sep 2023 04:36:26 +0000 (14:36 +1000)
Content.Shared/Ghost/GhostComponent.cs

index 8aea2c0833e5f1849f98da3401abbd1d400d3a91..63fc64c6ce8e8727323d6e0563961b1d40b3f1ea 100644 (file)
@@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
 namespace Content.Shared.Ghost;
 
 [RegisterComponent, NetworkedComponent, Access(typeof(SharedGhostSystem))]
-[AutoGenerateComponentState]
+[AutoGenerateComponentState(true)]
 public sealed partial class GhostComponent : Component
 {
     // I have no idea what this means I just wanted to kill comp references.
@@ -82,8 +82,7 @@ public sealed partial class GhostComponent : Component
     /// Ghost color
     /// </summary>
     /// <remarks>Used to allow admins to change ghost colors. Should be removed if the capability to edit existing sprite colors is ever added back.</remarks>
-    [DataField("color"), AutoNetworkedField]
-    [ViewVariables(VVAccess.ReadWrite)]
+    [DataField("color"), ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
     public Color color = Color.White;
 
     [DataField("canReturnToBody"), AutoNetworkedField]