From 5b0dfffec0c0c169691b5460cad9694b72116d3c Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 16 Oct 2022 19:35:23 +1300 Subject: [PATCH] Fix RGB light error (#11948) --- Content.Client/Light/RgbLightControllerSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Client/Light/RgbLightControllerSystem.cs b/Content.Client/Light/RgbLightControllerSystem.cs index e77483bd3e..e49edb3262 100644 --- a/Content.Client/Light/RgbLightControllerSystem.cs +++ b/Content.Client/Light/RgbLightControllerSystem.cs @@ -41,6 +41,9 @@ namespace Content.Client.Light private void OnComponentShutdown(EntityUid uid, RgbLightControllerComponent rgb, ComponentShutdown args) { + if (LifeStage(uid) >= EntityLifeStage.Terminating) + return; + ResetOriginalColors(uid, rgb); // and reset any in-hands or clothing sprites