fix ghost component (#5000)

This commit is contained in:
Leon Friedrich
2021-10-24 15:29:38 +13:00
committed by GitHub
parent 77c28c0302
commit 610f45e5cd
2 changed files with 4 additions and 2 deletions

View File

@@ -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!;

View File

@@ -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;
}