From 22398ea34231ea60aced95744725b5ce0b8289a0 Mon Sep 17 00:00:00 2001 From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Mon, 24 Feb 2025 20:48:32 +0300 Subject: [PATCH] Cleanup: Fix field naming rule violation in ``GhostComponent`` (#35454) * Fix * Update Content.Shared/Ghost/GhostComponent.cs --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --- Content.Client/Ghost/GhostSystem.cs | 2 +- Content.Shared/Ghost/GhostComponent.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Client/Ghost/GhostSystem.cs b/Content.Client/Ghost/GhostSystem.cs index 8e977b418b..180127bb10 100644 --- a/Content.Client/Ghost/GhostSystem.cs +++ b/Content.Client/Ghost/GhostSystem.cs @@ -150,7 +150,7 @@ namespace Content.Client.Ghost private void OnGhostState(EntityUid uid, GhostComponent component, ref AfterAutoHandleStateEvent args) { if (TryComp(uid, out var sprite)) - sprite.LayerSetColor(0, component.color); + sprite.LayerSetColor(0, component.Color); if (uid != _playerManager.LocalEntity) return; diff --git a/Content.Shared/Ghost/GhostComponent.cs b/Content.Shared/Ghost/GhostComponent.cs index 96e9b717b9..56eee1881c 100644 --- a/Content.Shared/Ghost/GhostComponent.cs +++ b/Content.Shared/Ghost/GhostComponent.cs @@ -86,8 +86,8 @@ 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"), ViewVariables(VVAccess.ReadWrite), AutoNetworkedField] - public Color color = Color.White; + [DataField, AutoNetworkedField] + public Color Color = Color.White; [DataField("canReturnToBody"), AutoNetworkedField] private bool _canReturnToBody;