From ca900250053cabfba57d0ed4b89cc0b3e23c0d3e Mon Sep 17 00:00:00 2001 From: Kara D Date: Thu, 14 Oct 2021 21:16:11 -0700 Subject: [PATCH] Hotfix light switches not working --- Content.Server/Light/EntitySystems/PoweredLightSystem.cs | 2 +- .../Prototypes/Entities/Structures/Wallmounts/lighting.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Server/Light/EntitySystems/PoweredLightSystem.cs b/Content.Server/Light/EntitySystems/PoweredLightSystem.cs index f6c6930e67..90f4d7e926 100644 --- a/Content.Server/Light/EntitySystems/PoweredLightSystem.cs +++ b/Content.Server/Light/EntitySystems/PoweredLightSystem.cs @@ -84,7 +84,7 @@ namespace Content.Server.Light.EntitySystems { switch (args.Port) { - case "toggle": + case "state": component.ToggleLight(); break; } diff --git a/Resources/Prototypes/Entities/Structures/Wallmounts/lighting.yml b/Resources/Prototypes/Entities/Structures/Wallmounts/lighting.yml index 359bff3354..b7e14672e1 100644 --- a/Resources/Prototypes/Entities/Structures/Wallmounts/lighting.yml +++ b/Resources/Prototypes/Entities/Structures/Wallmounts/lighting.yml @@ -29,7 +29,8 @@ offset: "0, -0.5" - type: SignalReceiver inputs: - - name: toggle + - name: state + type: bool - type: UserInterface interfaces: - key: enum.SignalReceiverUiKey.Key