From e3a39a21a221adb8f70688363c182bd43662548f Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Mon, 25 Mar 2019 22:47:54 +0100 Subject: [PATCH] Prevent epilepsy seizures from lights running out of power. --- .../GameObjects/Components/Power/PoweredLightComponent.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Content.Server/GameObjects/Components/Power/PoweredLightComponent.cs b/Content.Server/GameObjects/Components/Power/PoweredLightComponent.cs index cbf2b3111f..8fa309f15d 100644 --- a/Content.Server/GameObjects/Components/Power/PoweredLightComponent.cs +++ b/Content.Server/GameObjects/Components/Power/PoweredLightComponent.cs @@ -140,9 +140,9 @@ namespace Content.Server.GameObjects.Components.Power switch (LightBulb.State) { case LightBulbState.Normal: + device.Load = Load; if (device.Powered) { - device.Load = Load; sprite.LayerSetState(0, "on"); light.State = LightState.On; light.Color = LightBulb.Color; @@ -156,7 +156,6 @@ namespace Content.Server.GameObjects.Components.Power } else { - device.Load = 0; sprite.LayerSetState(0, "off"); light.State = LightState.Off; }