]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup: Fix field naming rule violation in ``GhostComponent`` (#35454)
authorWinkarst <74284083+Winkarst-cpu@users.noreply.github.com>
Mon, 24 Feb 2025 17:48:32 +0000 (20:48 +0300)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 17:48:32 +0000 (18:48 +0100)
* Fix

* Update Content.Shared/Ghost/GhostComponent.cs

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Content.Client/Ghost/GhostSystem.cs
Content.Shared/Ghost/GhostComponent.cs

index 8e977b418b081f502da535fcd1e843839c032ff3..180127bb10e682bb1ae4512e2446d17dc7d219cc 100644 (file)
@@ -150,7 +150,7 @@ namespace Content.Client.Ghost
         private void OnGhostState(EntityUid uid, GhostComponent component, ref AfterAutoHandleStateEvent args)
         {
             if (TryComp<SpriteComponent>(uid, out var sprite))
-                sprite.LayerSetColor(0, component.color);
+                sprite.LayerSetColor(0, component.Color);
 
             if (uid != _playerManager.LocalEntity)
                 return;
index 96e9b717b90084ad0ca1c659ce5ff58cf3bfdb80..56eee1881c50536f6380f17f495dceb52230e79b 100644 (file)
@@ -86,8 +86,8 @@ 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"), ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
-    public Color color = Color.White;
+    [DataField, AutoNetworkedField]
+    public Color Color = Color.White;
 
     [DataField("canReturnToBody"), AutoNetworkedField]
     private bool _canReturnToBody;