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>
This commit is contained in:
@@ -150,7 +150,7 @@ namespace Content.Client.Ghost
|
|||||||
private void OnGhostState(EntityUid uid, GhostComponent component, ref AfterAutoHandleStateEvent args)
|
private void OnGhostState(EntityUid uid, GhostComponent component, ref AfterAutoHandleStateEvent args)
|
||||||
{
|
{
|
||||||
if (TryComp<SpriteComponent>(uid, out var sprite))
|
if (TryComp<SpriteComponent>(uid, out var sprite))
|
||||||
sprite.LayerSetColor(0, component.color);
|
sprite.LayerSetColor(0, component.Color);
|
||||||
|
|
||||||
if (uid != _playerManager.LocalEntity)
|
if (uid != _playerManager.LocalEntity)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -86,8 +86,8 @@ public sealed partial class GhostComponent : Component
|
|||||||
/// Ghost color
|
/// Ghost color
|
||||||
/// </summary>
|
/// </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>
|
/// <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]
|
[DataField, AutoNetworkedField]
|
||||||
public Color color = Color.White;
|
public Color Color = Color.White;
|
||||||
|
|
||||||
[DataField("canReturnToBody"), AutoNetworkedField]
|
[DataField("canReturnToBody"), AutoNetworkedField]
|
||||||
private bool _canReturnToBody;
|
private bool _canReturnToBody;
|
||||||
|
|||||||
Reference in New Issue
Block a user