From bea86f3ddcb4cf4ee013419cadda2b80da0f84ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Ueti?= <52474532+Mirino97@users.noreply.github.com> Date: Mon, 18 Apr 2022 19:47:04 -0300 Subject: [PATCH] Fix #7574 - Lights stay off if taken from the fixture and placed back (#7595) * Fix 7574 * Added .Load to broken and burned states * 2am head * I swear after this I'm reading every single power code line there eis --- Content.Server/Light/EntitySystems/PoweredLightSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/Light/EntitySystems/PoweredLightSystem.cs b/Content.Server/Light/EntitySystems/PoweredLightSystem.cs index 52c33bfa68..b46db6a51a 100644 --- a/Content.Server/Light/EntitySystems/PoweredLightSystem.cs +++ b/Content.Server/Light/EntitySystems/PoweredLightSystem.cs @@ -244,7 +244,6 @@ namespace Content.Server.Light.EntitySystems } else { - powerReceiver.Load = (light.On && lightBulb.State == LightBulbState.Normal) ? lightBulb.PowerUse : 0; switch (lightBulb.State) { @@ -275,6 +274,8 @@ namespace Content.Server.Light.EntitySystems appearance?.SetData(PoweredLightVisuals.BulbState, PoweredLightState.Burned); break; } + + powerReceiver.Load = (light.On && lightBulb.State == LightBulbState.Normal) ? lightBulb.PowerUse : 0; } }