fix ghost recoloring (#20001)

This commit is contained in:
LankLTE 2023-09-10 21:36:26 -07:00 • committed by GitHub
parent 3c0439167a
commit 7eae2bb921
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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]