From ff2589d07c3176d0f2fd1a818c17def5e9e98a50 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 27 Feb 2022 16:02:39 +1300 Subject: [PATCH] Fix two action bugs (#6909) --- Content.Server/Ghost/Components/GhostComponent.cs | 1 + Content.Shared/Light/Component/SharedHandheldLightComponent.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/Ghost/Components/GhostComponent.cs b/Content.Server/Ghost/Components/GhostComponent.cs index 6142b9e82b..7daa0c98ee 100644 --- a/Content.Server/Ghost/Components/GhostComponent.cs +++ b/Content.Server/Ghost/Components/GhostComponent.cs @@ -24,6 +24,7 @@ namespace Content.Server.Ghost.Components Icon = new SpriteSpecifier.Texture(new ResourcePath("Interface/Actions/scream.png")), Name = "action-name-boo", Description = "action-description-boo", + CheckCanInteract = false, Event = new BooActionEvent(), }; } diff --git a/Content.Shared/Light/Component/SharedHandheldLightComponent.cs b/Content.Shared/Light/Component/SharedHandheldLightComponent.cs index 5ede7633c8..0202cd5a27 100644 --- a/Content.Shared/Light/Component/SharedHandheldLightComponent.cs +++ b/Content.Shared/Light/Component/SharedHandheldLightComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Light.Component public abstract class SharedHandheldLightComponent : Robust.Shared.GameObjects.Component { [DataField("toggleAction", required: true)] - public InstantAction ToggleAction = default!; + public InstantAction ToggleAction = new(); public const int StatusLevels = 6;