From 7eae2bb921201b359dd9756b4a0d9ee848da7b07 Mon Sep 17 00:00:00 2001 From: LankLTE <135308300+LankLTE@users.noreply.github.com> Date: Sun, 10 Sep 2023 21:36:26 -0700 Subject: [PATCH] fix ghost recoloring (#20001) --- Content.Shared/Ghost/GhostComponent.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Content.Shared/Ghost/GhostComponent.cs b/Content.Shared/Ghost/GhostComponent.cs index 8aea2c0833..63fc64c6ce 100644 --- a/Content.Shared/Ghost/GhostComponent.cs +++ b/Content.Shared/Ghost/GhostComponent.cs @@ -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 /// /// Used to allow admins to change ghost colors. Should be removed if the capability to edit existing sprite colors is ever added back. - [DataField("color"), AutoNetworkedField] - [ViewVariables(VVAccess.ReadWrite)] + [DataField("color"), ViewVariables(VVAccess.ReadWrite), AutoNetworkedField] public Color color = Color.White; [DataField("canReturnToBody"), AutoNetworkedField]