Fix cryopod interactions (#15045)

This commit is contained in:
Leon Friedrich
2023-04-03 08:30:03 +12:00
committed by GitHub
parent 1bd3e54dae
commit 4e978d54a4
4 changed files with 8 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ using Content.Shared.Medical.Cryogenics;
namespace Content.Server.Medical.Components;
[RegisterComponent]
[RegisterComponent, ComponentReference(typeof(SharedCryoPodComponent))]
public sealed class CryoPodComponent: SharedCryoPodComponent
{
/// <summary>

View File

@@ -53,7 +53,6 @@ public sealed partial class CryoPodSystem: SharedCryoPodSystem
{
base.Initialize();
SubscribeLocalEvent<CryoPodComponent, CanDropTargetEvent>(OnCryoPodCanDropOn);
SubscribeLocalEvent<CryoPodComponent, ComponentInit>(OnComponentInit);
SubscribeLocalEvent<CryoPodComponent, GetVerbsEvent<AlternativeVerb>>(AddAlternativeVerbs);
SubscribeLocalEvent<CryoPodComponent, GotEmaggedEvent>(OnEmagged);