From 610f45e5cd495f15d9c2d9ad26be9fdad175e093 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 24 Oct 2021 15:29:38 +1300 Subject: [PATCH] fix ghost component (#5000) --- Content.Client/Ghost/GhostComponent.cs | 3 ++- Content.Server/Ghost/Components/GhostComponent.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Content.Client/Ghost/GhostComponent.cs b/Content.Client/Ghost/GhostComponent.cs index 1f38dc84af..4499834b7b 100644 --- a/Content.Client/Ghost/GhostComponent.cs +++ b/Content.Client/Ghost/GhostComponent.cs @@ -7,7 +7,8 @@ using Robust.Shared.IoC; namespace Content.Client.Ghost { [RegisterComponent] - public class GhostComponent : SharedGhostComponent + [ComponentReference(typeof(SharedGhostComponent))] + public sealed class GhostComponent : SharedGhostComponent { [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Server/Ghost/Components/GhostComponent.cs b/Content.Server/Ghost/Components/GhostComponent.cs index 0a2dcbc3d8..5752451106 100644 --- a/Content.Server/Ghost/Components/GhostComponent.cs +++ b/Content.Server/Ghost/Components/GhostComponent.cs @@ -5,7 +5,8 @@ using Robust.Shared.GameObjects; namespace Content.Server.Ghost.Components { [RegisterComponent] - public class GhostComponent : SharedGhostComponent + [ComponentReference(typeof(SharedGhostComponent))] + public sealed class GhostComponent : SharedGhostComponent { public TimeSpan TimeOfDeath { get; set; } = TimeSpan.Zero; }